pgsql: Allow SET TABLESPACE to database default

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема pgsql: Allow SET TABLESPACE to database default
Дата
Msg-id E1W4ffT-0001wq-Tt@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/6f25c62d788ea6312fe718ed57a3d169d8efc066

Modified Files
--------------
src/backend/commands/tablecmds.c |   15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: pgsql: Allow SET TABLESPACE to database default
Следующее
От: Stephen Frost
Дата:
Сообщение: pgsql: Allow SET TABLESPACE to database default