forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite70c428
committed
Allow SET TABLESPACE to database default
We've always allowed CREATE TABLE to create tables in the database's defaulttablespace without checking for CREATE permissions on that tablespace.Unfortunately, the original implementation of ALTER TABLE ... SET TABLESPACEdidn't pick up on that exception.This changes ALTER TABLE ... SET TABLESPACE to allow the database's defaulttablespace without checking for CREATE rights on that tablespace, just asCREATE TABLE works today. Users could always do this through a series ofcommands (CREATE TABLE ... AS SELECT * FROM ...; DROP TABLE ...; etc), solet's fix the oversight in SET TABLESPACE's original implementation.1 parent2346c38 commite70c428
1 file changed
+10
-5
lines changedLines changed: 10 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6829 | 6829 |
| |
6830 | 6830 |
| |
6831 | 6831 |
| |
6832 |
| - | |
6833 | 6832 |
| |
6834 | 6833 |
| |
6835 | 6834 |
| |
| |||
6838 | 6837 |
| |
6839 | 6838 |
| |
6840 | 6839 |
| |
6841 |
| - | |
6842 |
| - | |
6843 |
| - | |
6844 |
| - | |
| 6840 | + | |
| 6841 | + | |
| 6842 | + | |
| 6843 | + | |
| 6844 | + | |
| 6845 | + | |
| 6846 | + | |
| 6847 | + | |
| 6848 | + | |
6845 | 6849 |
| |
6846 | 6850 |
| |
6847 | 6851 |
| |
6848 | 6852 |
| |
6849 | 6853 |
| |
6850 | 6854 |
| |
| 6855 | + | |
6851 | 6856 |
| |
6852 | 6857 |
| |
6853 | 6858 |
| |
|
0 commit comments
Comments
(0)