summaryrefslogtreecommitdiffstats
path: root/src/backend/replication/pgoutput/pgoutput.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:18:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:18:04 +0000
commit1d82e40c4e30d4666490f7a02db711541b5bb77f (patch)
treedcc6d635e272e13637f4ffedb91a3756f4a54c9b /src/backend/replication/pgoutput/pgoutput.c
parentAdding debian version 15.5-0+deb12u1. (diff)
downloadpostgresql-15-1d82e40c4e30d4666490f7a02db711541b5bb77f.tar.xz
postgresql-15-1d82e40c4e30d4666490f7a02db711541b5bb77f.zip
Merging upstream version 15.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/backend/replication/pgoutput/pgoutput.c')
-rw-r--r--src/backend/replication/pgoutput/pgoutput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c
index 63a8442..5fc0def 100644
--- a/src/backend/replication/pgoutput/pgoutput.c
+++ b/src/backend/replication/pgoutput/pgoutput.c
@@ -1095,8 +1095,8 @@ init_tuple_slot(PGOutputData *data, Relation relation,
* Create tuple table slots. Create a copy of the TupleDesc as it needs to
* live as long as the cache remains.
*/
- oldtupdesc = CreateTupleDescCopy(RelationGetDescr(relation));
- newtupdesc = CreateTupleDescCopy(RelationGetDescr(relation));
+ oldtupdesc = CreateTupleDescCopyConstr(RelationGetDescr(relation));
+ newtupdesc = CreateTupleDescCopyConstr(RelationGetDescr(relation));
entry->old_slot = MakeSingleTupleTableSlot(oldtupdesc, &TTSOpsHeapTuple);
entry->new_slot = MakeSingleTupleTableSlot(newtupdesc, &TTSOpsHeapTuple);