1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +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

@ -767,7 +767,7 @@ DropSubscription(DropSubscriptionStmt *stmt, bool isTopLevel)
datum = SysCacheGetAttr(SUBSCRIPTIONOID, tup,
Anum_pg_subscription_subconninfo, &isnull);
Assert(!isnull);
conninfo = pstrdup(TextDatumGetCString(datum));
conninfo = TextDatumGetCString(datum);
/* Get slotname */
datum = SysCacheGetAttr(SUBSCRIPTIONOID, tup,