mirror of https://github.com/citusdata/citus.git
Add tests for CREATE DATABASE with OID option (#6376)
PG15 now allows users to specify oids when creating databases. This feature is a side effect of a bigger feature in pg_upgrade. Relevant PG Commit: pg_upgrade: Preserve database OIDs. aa01051418f10afbdfa781b8dc109615ca785ff9pull/6386/head
parent
9cad6a5324
commit
7e0edee4ec
|
@ -1371,6 +1371,11 @@ SELECT 1 FROM citus_remove_node('localhost', :master_port);
|
|||
|
||||
DROP SERVER foreign_server CASCADE;
|
||||
NOTICE: drop cascades to 2 other objects
|
||||
-- PG15 now supports specifying oid on CREATE DATABASE
|
||||
-- verify that we print meaningful notice messages.
|
||||
CREATE DATABASE db_with_oid OID 987654;
|
||||
NOTICE: Citus partially supports CREATE DATABASE for distributed databases
|
||||
DROP DATABASE db_with_oid;
|
||||
-- Clean up
|
||||
\set VERBOSITY terse
|
||||
SET client_min_messages TO ERROR;
|
||||
|
|
|
@ -873,6 +873,11 @@ SELECT undistribute_table('foreign_table_test');
|
|||
SELECT 1 FROM citus_remove_node('localhost', :master_port);
|
||||
DROP SERVER foreign_server CASCADE;
|
||||
|
||||
-- PG15 now supports specifying oid on CREATE DATABASE
|
||||
-- verify that we print meaningful notice messages.
|
||||
CREATE DATABASE db_with_oid OID 987654;
|
||||
DROP DATABASE db_with_oid;
|
||||
|
||||
-- Clean up
|
||||
\set VERBOSITY terse
|
||||
SET client_min_messages TO ERROR;
|
||||
|
|
Loading…
Reference in New Issue