pgsql: Copy name when cloning FKs recurses to partitions

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Copy name when cloning FKs recurses to partitions
Date: 2019-04-03 18:37:07
Message-ID: E1hBkl1-0003kQ-QH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Copy name when cloning FKs recurses to partitions

We were passing a string owned by a syscache entry, which was released
before recursing. Fix by pstrdup'ing the string.

Per buildfarm member prion.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5f6fc34af5712995026267b9ace79d06b258a0ae

Modified Files
--------------
src/backend/commands/tablecmds.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2019-04-03 19:03:02 pgsql: GSSAPI encryption support
Previous Message Alvaro Herrera 2019-04-03 17:51:13 pgsql: Support foreign keys that reference partitioned tables