mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Make DROP TABLE rollback-able: postpone physical file delete until commit.
(WAL logging for this is not done yet, however.) Clean up a number of really crufty things that are no longer needed now that DROP behaves nicely. Make temp table mapper do the right things when drop or rename affecting a temp table is rolled back. Also, remove "relation modified while in use" error check, in favor of locking tables at first reference and holding that lock throughout the statement.
This commit is contained in:
@ -62,10 +62,10 @@ alter table rename;
|
||||
ERROR: parser: parse error at or near ";"
|
||||
-- no such relation
|
||||
alter table nonesuch rename to newnonesuch;
|
||||
ERROR: Relation 'nonesuch' does not exist
|
||||
ERROR: Relation "nonesuch" does not exist
|
||||
-- no such relation
|
||||
alter table nonesuch rename to stud_emp;
|
||||
ERROR: Relation 'nonesuch' does not exist
|
||||
ERROR: Relation "nonesuch" does not exist
|
||||
-- system relation
|
||||
alter table stud_emp rename to pg_stud_emp;
|
||||
ERROR: renamerel: Illegal class name: "pg_stud_emp" -- pg_ is reserved for system catalogs
|
||||
|
Reference in New Issue
Block a user