We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a1d0c9 commit 12fb189Copy full SHA for 12fb189
src/backend/replication/pgoutput/pgoutput.c
@@ -305,7 +305,8 @@ maybe_send_schema(LogicalDecodingContext *ctx,
305
306
/* Map must live as long as the session does. */
307
oldctx = MemoryContextSwitchTo(CacheMemoryContext);
308
- relentry->map = convert_tuples_by_name(indesc, outdesc);
+ relentry->map = convert_tuples_by_name(CreateTupleDescCopy(indesc),
309
+ CreateTupleDescCopy(outdesc));
310
MemoryContextSwitchTo(oldctx);
311
send_relation_and_attrs(ancestor, ctx);
312
RelationClose(ancestor);
0 commit comments