Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5f6fc34

Browse files
committed
Copy name when cloning FKs recurses to partitions
We were passing a string owned by a syscache entry, which was releasedbefore recursing. Fix by pstrdup'ing the string.Per buildfarm member prion.
1 parentf56f8f8 commit5f6fc34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8619,7 +8619,7 @@ CloneFkReferencing(List **wqueue, Relation parentRel, Relation partRel)
86198619
"fkey",
86208620
RelationGetNamespace(partRel), NIL);
86218621
else
8622-
fkconstraint->conname = NameStr(constrForm->conname);
8622+
fkconstraint->conname =pstrdup(NameStr(constrForm->conname));
86238623
fkconstraint->fk_upd_action = constrForm->confupdtype;
86248624
fkconstraint->fk_del_action = constrForm->confdeltype;
86258625
fkconstraint->deferrable = constrForm->condeferrable;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp