Skip to content

Commit bc97207

Browse files
committed
Add missing pstrdup
Lifetime of the input string is not right, so create a separate copy. Author: Amit Langote Discussion: https://postgr.es/m/a2773420-50d1-0a42-3396-fe42b0921134@lab.ntt.co.jp
1 parent dfce1f9 commit bc97207

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/commands/tablecmds.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14568,7 +14568,8 @@ CloneRowTriggersToPartition(Relation parent, Relation partition)
1456814568

1456914569
col = TupleDescAttr(parent->rd_att,
1457014570
trigForm->tgattr.values[i] - 1);
14571-
cols = lappend(cols, makeString(NameStr(col->attname)));
14571+
cols = lappend(cols,
14572+
makeString(pstrdup(NameStr(col->attname))));
1457214573
}
1457314574
}
1457414575

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy