]> granicus.if.org Git - postgresql/commit
Copy name when cloning FKs recurses to partitions
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 3 Apr 2019 18:32:53 +0000 (15:32 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 3 Apr 2019 18:35:54 +0000 (15:35 -0300)
commit5f6fc34af5712995026267b9ace79d06b258a0ae
tree74613e0804198ea715397e2382975cf8734982d9
parentf56f8f8da6afd8523b4d5284e02a20ed2b33ef8d
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.
src/backend/commands/tablecmds.c