diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-04-14 12:54:09 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-04-14 12:54:09 -0400 |
commit | 25371a72b95aab43b0a3547ead4d3286c1128351 (patch) | |
tree | d4cb3fe6443160a730539932ea80a401416d0782 /src/backend/replication/logical/tablesync.c | |
parent | 0c22327f269eb3bec25327b0e620bdca082e4628 (diff) | |
download | postgresql-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.c | 2 |
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); |