Re: BUG #17909: CREATE SCHEMA AUTHORIZATION sch CREATE TABLE foo ( id INT ) will coredump
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Richard Guo <guofenglinux@gmail.com>, hysong0101@163.com, pgsql-bugs@lists.postgresql.org
Date: 2023-04-27T23:56:27Z
Lists: pgsql-bugs
On Thu, Apr 27, 2023 at 07:48:49PM -0400, Tom Lane wrote: > Seems like the answer needs to involve postponing examination of > the contained DDL until we've figured out what the new schema's > name is going to be. Actually, wait a min.. The transformation of the objects is applied during the execution of the CREATE SCHEMA command, but nowhere else, so if you give to transformCreateSchemaStmt() the name of the expected schema rather than rely on the schema name from the query this should work OK. -- Michael
Commits
-
Fix crashes with CREATE SCHEMA AUTHORIZATION and schema elements
- a9212716b3bf 11.20 landed
- 63f7e91ecf9f 12.15 landed
- 7e95a33b42e7 13.11 landed
- d29eba1987cb 14.8 landed
- b9ad73ad250b 15.3 landed
- 4dadd660f071 16.0 landed