[COMMITTERS] pgsql: Fix unsafe reference into relcache in constructed CommentStmt.

2017-05-15 Thread Tom Lane
Fix unsafe reference into relcache in constructed CommentStmt. The CommentStmt made by RebuildConstraintComment() has to pstrdup the relation name, else it will contain a dangling pointer after that relcache entry is flushed. (I'm less sure that pstrdup'ing conname is necessary, but let's be safe

[COMMITTERS] pgsql: Fix unsafe reference into relcache in constructed CommentStmt.

2017-05-15 Thread Tom Lane
Fix unsafe reference into relcache in constructed CommentStmt. The CommentStmt made by RebuildConstraintComment() has to pstrdup the relation name, else it will contain a dangling pointer after that relcache entry is flushed. (I'm less sure that pstrdup'ing conname is necessary, but let's be safe

[COMMITTERS] pgsql: Fix unsafe reference into relcache in constructed CommentStmt.

2017-05-15 Thread Tom Lane
Fix unsafe reference into relcache in constructed CommentStmt. The CommentStmt made by RebuildConstraintComment() has to pstrdup the relation name, else it will contain a dangling pointer after that relcache entry is flushed. (I'm less sure that pstrdup'ing conname is necessary, but let's be safe