Skip to content

Commit eabe2a8

Browse files
author
Anton Voloshin
committed
Use proper ifdef to get ExecInitUpdateProjection's name
updating the previous commit.
1 parent c76321a commit eabe2a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/partition_router.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +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 */
257+
#ifdef PG_HAVE_PGPRO_EXEC_INIT_UPDATE_PROJECTION
258258
PgproExecInitUpdateProjection(state->mt_state, rri);
259259
#else
260260
ExecInitUpdateProjection(state->mt_state, rri);
261-
#endif /* PG_VERSION_NUM >= 150000 ... else */
261+
#endif /* !PG_HAVE_PGPRO_EXEC_INIT_UPDATE_PROJECTION */
262262

263263
old_slot = rri->ri_oldTupleSlot;
264264
/* Fetch the most recent version of old tuple. */

0 commit comments

Comments
 (0)