1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00

Remove pstrdup of TextDatumGetCString

The result of TextDatumGetCString is already palloc'ed.
This commit is contained in:
Peter Eisentraut
2017-04-14 12:54:09 -04:00
parent 0c22327f26
commit 25371a72b9
3 changed files with 4 additions and 4 deletions

View File

@ -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);