Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c76321a

Browse files
author
Anton Voloshin
committed
PGPRO-7123: unexport ExecInitUpdateProjection for timescaledb
In vanilla PostgreSQL ExecInitUpdateProjection is a static function. However, pgpro does export that function due to pg_pathman needs. Starting with 15th version, we rename exported function, adding Pgpro prefix to avoid compatibility issues with timescaledb.
1 parent edbf4fb commit c76321a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/partition_router.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,11 @@ partition_router_exec(CustomScanState *node)
254254

255255
/* Initialize projection info if first time for this table. */
256256
if (unlikely(!rri->ri_projectNewInfoValid))
257+
#if PG_VERSION_NUM >= 150000 /* after PGPRO-7123 */
258+
PgproExecInitUpdateProjection(state->mt_state, rri);
259+
#else
257260
ExecInitUpdateProjection(state->mt_state, rri);
261+
#endif /* PG_VERSION_NUM >= 150000 ... else */
258262

259263
old_slot = rri->ri_oldTupleSlot;
260264
/* Fetch the most recent version of old tuple. */
@@ -264,7 +268,7 @@ partition_router_exec(CustomScanState *node)
264268

265269
/* Build full tuple (using "old_slot" + changed from "slot"): */
266270
full_slot = ExecGetUpdateNewTuple(rri, slot, old_slot);
267-
#endif
271+
#endif /* PG_VERSION_NUM >= 140000 */
268272

269273
/* Lock or delete tuple from old partition */
270274
full_slot = router_lock_or_delete_tuple(state, full_slot,

0 commit comments

Comments
 (0)