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.
"fkey",
RelationGetNamespace(partRel), NIL);
else
- fkconstraint->conname = NameStr(constrForm->conname);
+ fkconstraint->conname = pstrdup(NameStr(constrForm->conname));
fkconstraint->fk_upd_action = constrForm->confupdtype;
fkconstraint->fk_del_action = constrForm->confdeltype;
fkconstraint->deferrable = constrForm->condeferrable;