Skip to content

Commit 50b212c

Browse files
committed
Call the previous shmem starup hook
1 parent e269a2b commit 50b212c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pglogical_apply.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ handle_insert(StringInfo s)
404404
estate = create_estate_for_relation(rel->rel);
405405
econtext = GetPerTupleExprContext(estate);
406406

407+
PushActiveSnapshot(GetTransactionSnapshot());
408+
407409
MemoryContextSwitchTo(GetPerTupleMemoryContext(estate));
408410
fill_tuple_defaults(rel, econtext, &newtup);
409411

pglogical_worker.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ pglogical_worker_shmem_startup(void)
401401
{
402402
bool found;
403403

404+
if (prev_shmem_startup_hook != NULL)
405+
prev_shmem_startup_hook();
406+
404407
/* Init signaling context for supervisor proccess. */
405408
PGLogicalCtx = ShmemInitStruct("pglogical_context", worker_shmem_size(),
406409
&found);

0 commit comments

Comments
 (0)