mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix pg_dump to dump shell types.
Per discussion, it really ought to do this. The original choice to exclude shell types was probably made in the dark ages before we made it harder to accidentally create shell types; but that was in 7.3. Also, cause the standard regression tests to leave a shell type behind, for convenience in testing the case in pg_dump and pg_upgrade. Back-patch to all supported branches.
This commit is contained in:
@ -29,6 +29,8 @@ ERROR: type "shell" already exists
|
||||
DROP TYPE shell;
|
||||
DROP TYPE shell; -- fail, type not exist
|
||||
ERROR: type "shell" does not exist
|
||||
-- also, let's leave one around for purposes of pg_dump testing
|
||||
CREATE TYPE myshell;
|
||||
--
|
||||
-- Test type-related default values (broken in releases before PG 7.2)
|
||||
--
|
||||
|
@ -31,6 +31,9 @@ CREATE TYPE shell; -- fail, type already present
|
||||
DROP TYPE shell;
|
||||
DROP TYPE shell; -- fail, type not exist
|
||||
|
||||
-- also, let's leave one around for purposes of pg_dump testing
|
||||
CREATE TYPE myshell;
|
||||
|
||||
--
|
||||
-- Test type-related default values (broken in releases before PG 7.2)
|
||||
--
|
||||
|
Reference in New Issue
Block a user