aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistsplit.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2014-01-18 18:41:52 -0500
committerStephen Frost <sfrost@snowman.net>2014-01-18 18:50:09 -0500
commitd2636486b3fe13d855b0109f15efaa5f4e00adef (patch)
treeea67a652142f112e235b4aa3f0e054cccc8e5317 /src/backend/access/gist/gistsplit.c
parent6d969b000eb4dd952ee442388260dd22f265078b (diff)
downloadpostgresql-d2636486b3fe13d855b0109f15efaa5f4e00adef.tar.gz
postgresql-d2636486b3fe13d855b0109f15efaa5f4e00adef.zip
Allow SET TABLESPACE to database default
We've always allowed CREATE TABLE to create tables in the database's default tablespace without checking for CREATE permissions on that tablespace. Unfortunately, the original implementation of ALTER TABLE ... SET TABLESPACE didn't pick up on that exception. This changes ALTER TABLE ... SET TABLESPACE to allow the database's default tablespace without checking for CREATE rights on that tablespace, just as CREATE TABLE works today. Users could always do this through a series of commands (CREATE TABLE ... AS SELECT * FROM ...; DROP TABLE ...; etc), so let's fix the oversight in SET TABLESPACE's original implementation.
Diffstat (limited to 'src/backend/access/gist/gistsplit.c')
0 files changed, 0 insertions, 0 deletions