Skip to content

Commit

Permalink
Fix building against PG14.0
Browse files Browse the repository at this point in the history
In timescale#7467 we added a `RelationCacheInvalidate(false)` but on upstream
this API changed on PG14.1 by postgres/postgres@dde966e.

We build agains first minor release in our nightly CI and also on ABI
tests so make sure we're using the right function call based on the
Postgres version we're building against.

https://github.com/timescale/timescaledb/actions/runs/11943958854/job/33294019881#step:12:360
  • Loading branch information
fabriziomello committed Nov 21, 2024
1 parent beb4326 commit 21d23cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tsl/src/hypercore/hypercore_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -3491,7 +3491,11 @@ convert_to_hypercore_finish(Oid relid)
* relcache invalidations. Previously there was sometimes a crash here
* because the tuple sort state had a reference to a tuple descriptor in
* the relcache. */
#if (PG_VERSION_NUM >= 140001)
RelationCacheInvalidate(false);
#else
RelationCacheInvalidate();
#endif
#endif

Chunk *chunk = ts_chunk_get_by_relid(conversionstate->relid, true);
Expand Down

0 comments on commit 21d23cb

Please sign in to comment.