pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Ignore tablespace ACLs when ignoring schema ACLs. 6+ messages / 1 participants [nested] [flat]
* pgsql: Ignore tablespace ACLs when ignoring schema ACLs. @ 2017-02-12 21:09 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2017-02-12 21:09 UTC (permalink / raw) To: pgsql-committers Ignore tablespace ACLs when ignoring schema ACLs. The ALTER TABLE ALTER TYPE implementation can issue DROP INDEX and CREATE INDEX to refit existing indexes for the new column type. Since this CREATE INDEX is an implementation detail of an index alteration, the ensuing DefineIndex() should skip ACL checks specific to index creation. It already skips the namespace ACL check. Make it skip the tablespace ACL check, too. Back-patch to 9.2 (all supported versions). Reviewed by Tom Lane. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/f30f34e5897b64e0fb6616154c11dc9765866046 Modified Files -------------- src/backend/commands/indexcmds.c | 9 +++++---- src/test/regress/input/tablespace.source | 7 +++++++ src/test/regress/output/tablespace.source | 9 ++++++++- 3 files changed, 20 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ignore tablespace ACLs when ignoring schema ACLs. @ 2017-02-12 21:09 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2017-02-12 21:09 UTC (permalink / raw) To: pgsql-committers Ignore tablespace ACLs when ignoring schema ACLs. The ALTER TABLE ALTER TYPE implementation can issue DROP INDEX and CREATE INDEX to refit existing indexes for the new column type. Since this CREATE INDEX is an implementation detail of an index alteration, the ensuing DefineIndex() should skip ACL checks specific to index creation. It already skips the namespace ACL check. Make it skip the tablespace ACL check, too. Back-patch to 9.2 (all supported versions). Reviewed by Tom Lane. Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/4d43d5d35d544d39ee59e3ef56cd01faf5be3016 Modified Files -------------- src/backend/commands/indexcmds.c | 9 +++++---- src/test/regress/input/tablespace.source | 7 +++++++ src/test/regress/output/tablespace.source | 9 ++++++++- 3 files changed, 20 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ignore tablespace ACLs when ignoring schema ACLs. @ 2017-02-12 21:09 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2017-02-12 21:09 UTC (permalink / raw) To: pgsql-committers Ignore tablespace ACLs when ignoring schema ACLs. The ALTER TABLE ALTER TYPE implementation can issue DROP INDEX and CREATE INDEX to refit existing indexes for the new column type. Since this CREATE INDEX is an implementation detail of an index alteration, the ensuing DefineIndex() should skip ACL checks specific to index creation. It already skips the namespace ACL check. Make it skip the tablespace ACL check, too. Back-patch to 9.2 (all supported versions). Reviewed by Tom Lane. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/660e457f5b1c4647ad2d41496840f793c87d9208 Modified Files -------------- src/backend/commands/indexcmds.c | 9 +++++---- src/test/regress/input/tablespace.source | 7 +++++++ src/test/regress/output/tablespace.source | 9 ++++++++- 3 files changed, 20 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ignore tablespace ACLs when ignoring schema ACLs. @ 2017-02-12 21:09 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2017-02-12 21:09 UTC (permalink / raw) To: pgsql-committers Ignore tablespace ACLs when ignoring schema ACLs. The ALTER TABLE ALTER TYPE implementation can issue DROP INDEX and CREATE INDEX to refit existing indexes for the new column type. Since this CREATE INDEX is an implementation detail of an index alteration, the ensuing DefineIndex() should skip ACL checks specific to index creation. It already skips the namespace ACL check. Make it skip the tablespace ACL check, too. Back-patch to 9.2 (all supported versions). Reviewed by Tom Lane. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/804aad8ff46cbef9f520507bb8b4522a011cd1b2 Modified Files -------------- src/backend/commands/indexcmds.c | 9 +++++---- src/test/regress/input/tablespace.source | 7 +++++++ src/test/regress/output/tablespace.source | 9 ++++++++- 3 files changed, 20 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ignore tablespace ACLs when ignoring schema ACLs. @ 2017-02-12 21:09 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2017-02-12 21:09 UTC (permalink / raw) To: pgsql-committers Ignore tablespace ACLs when ignoring schema ACLs. The ALTER TABLE ALTER TYPE implementation can issue DROP INDEX and CREATE INDEX to refit existing indexes for the new column type. Since this CREATE INDEX is an implementation detail of an index alteration, the ensuing DefineIndex() should skip ACL checks specific to index creation. It already skips the namespace ACL check. Make it skip the tablespace ACL check, too. Back-patch to 9.2 (all supported versions). Reviewed by Tom Lane. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/b167d57d5af09527af61952296f1db8761cbee38 Modified Files -------------- src/backend/commands/indexcmds.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Ignore tablespace ACLs when ignoring schema ACLs. @ 2017-02-12 21:09 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2017-02-12 21:09 UTC (permalink / raw) To: pgsql-committers Ignore tablespace ACLs when ignoring schema ACLs. The ALTER TABLE ALTER TYPE implementation can issue DROP INDEX and CREATE INDEX to refit existing indexes for the new column type. Since this CREATE INDEX is an implementation detail of an index alteration, the ensuing DefineIndex() should skip ACL checks specific to index creation. It already skips the namespace ACL check. Make it skip the tablespace ACL check, too. Back-patch to 9.2 (all supported versions). Reviewed by Tom Lane. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/27a8c8033a67853878335816b486a71477fd833d Modified Files -------------- src/backend/commands/indexcmds.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2017-02-12 21:09 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-02-12 21:09 pgsql: Ignore tablespace ACLs when ignoring schema ACLs. Noah Misch <noah@leadboat.com> 2017-02-12 21:09 pgsql: Ignore tablespace ACLs when ignoring schema ACLs. Noah Misch <noah@leadboat.com> 2017-02-12 21:09 pgsql: Ignore tablespace ACLs when ignoring schema ACLs. Noah Misch <noah@leadboat.com> 2017-02-12 21:09 pgsql: Ignore tablespace ACLs when ignoring schema ACLs. Noah Misch <noah@leadboat.com> 2017-02-12 21:09 pgsql: Ignore tablespace ACLs when ignoring schema ACLs. Noah Misch <noah@leadboat.com> 2017-02-12 21:09 pgsql: Ignore tablespace ACLs when ignoring schema ACLs. Noah Misch <noah@leadboat.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox