summaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/tablesync.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-04-14 12:54:09 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-04-14 12:54:09 -0400
commit25371a72b95aab43b0a3547ead4d3286c1128351 (patch)
treed4cb3fe6443160a730539932ea80a401416d0782 /src/backend/replication/logical/tablesync.c
parent0c22327f269eb3bec25327b0e620bdca082e4628 (diff)
downloadpostgresql-25371a72b95aab43b0a3547ead4d3286c1128351.tar.gz
Remove pstrdup of TextDatumGetCString
The result of TextDatumGetCString is already palloc'ed.
Diffstat (limited to 'src/backend/replication/logical/tablesync.c')
-rw-r--r--src/backend/replication/logical/tablesync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/logical/tablesync.c b/src/backend/replication/logical/tablesync.c
index d1f27348f0..bf27641009 100644
--- a/src/backend/replication/logical/tablesync.c
+++ b/src/backend/replication/logical/tablesync.c
@@ -612,7 +612,7 @@ fetch_remote_table_info(char *nspname, char *relname,
while (tuplestore_gettupleslot(res->tuplestore, true, false, slot))
{
lrel->attnames[natt] =
- pstrdup(TextDatumGetCString(slot_getattr(slot, 1, &isnull)));
+ TextDatumGetCString(slot_getattr(slot, 1, &isnull));
Assert(!isnull);
lrel->atttyps[natt] = DatumGetObjectId(slot_getattr(slot, 2, &isnull));
Assert(!isnull);