Skip to content

Commit

Permalink
fix #2: Row filtering for logical replication
Browse files Browse the repository at this point in the history
  • Loading branch information
Euler Taveira committed Aug 23, 2019
1 parent b912243 commit ef7015a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/replication/pgoutput/pgoutput.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "utils/builtins.h"
#include "utils/inval.h"
#include "utils/int8.h"
#include "utils/lsyscache.h"
#include "utils/memutils.h"
#include "utils/syscache.h"
#include "utils/varlena.h"
Expand Down Expand Up @@ -430,8 +431,7 @@ pgoutput_change(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
/* prepare context per tuple */
ecxt = GetPerTupleExprContext(estate);
oldcxt = MemoryContextSwitchTo(estate->es_query_cxt);
ecxt->ecxt_scantuple = ExecInitExtraTupleSlot(estate);
ExecSetSlotDescriptor(ecxt->ecxt_scantuple, tupdesc);
ecxt->ecxt_scantuple = ExecInitExtraTupleSlot(estate, tupdesc);

ExecStoreTuple(new_tuple ? new_tuple : old_tuple, ecxt->ecxt_scantuple, InvalidBuffer, false);

Expand Down

0 comments on commit ef7015a

Please sign in to comment.