Re: BUG #17909: CREATE SCHEMA AUTHORIZATION sch CREATE TABLE foo ( id INT ) will coredump
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Richard Guo <guofenglinux@gmail.com>, hysong0101@163.com,
pgsql-bugs@lists.postgresql.org
Date: 2023-04-27T23:48:49Z
Lists: pgsql-bugs
Michael Paquier <michael@paquier.xyz> writes: > It's actually much trickier than that, on second look, as a RoleSpec > is embedded in this portion of a query because we need to support > CURRENT_ROLE, CURRENT_SESSION and SESSION_USER. For example, this > query assigns neither role name nor schema name we could rely on at > transformation for the objects: > create schema authorization current_role create table aa (a int); 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. regards, tom lane
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