mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Fix alter_system_table test
Add workaround for disabling ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS warning for the test that tries to create a tablespace with a reserved name. Discussion: https://www.postgresql.org/message-id/flat/E1iacW7-0003h6-6U%40gemulon.postgresql.org
This commit is contained in:
@ -152,8 +152,10 @@ BEGIN;
|
|||||||
ALTER TABLE pg_description SET SCHEMA public;
|
ALTER TABLE pg_description SET SCHEMA public;
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
-- reserved tablespace name
|
-- reserved tablespace name
|
||||||
|
SET client_min_messages = error; -- disable ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS warning
|
||||||
CREATE TABLESPACE pg_foo LOCATION '/no/such/location';
|
CREATE TABLESPACE pg_foo LOCATION '/no/such/location';
|
||||||
ERROR: directory "/no/such/location" does not exist
|
ERROR: directory "/no/such/location" does not exist
|
||||||
|
RESET client_min_messages;
|
||||||
-- triggers
|
-- triggers
|
||||||
CREATE TRIGGER t1 BEFORE INSERT ON pg_description EXECUTE FUNCTION tf1();
|
CREATE TRIGGER t1 BEFORE INSERT ON pg_description EXECUTE FUNCTION tf1();
|
||||||
ALTER TRIGGER t1 ON pg_description RENAME TO t2;
|
ALTER TRIGGER t1 ON pg_description RENAME TO t2;
|
||||||
|
@ -166,7 +166,9 @@ ALTER TABLE pg_description SET SCHEMA public;
|
|||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
||||||
-- reserved tablespace name
|
-- reserved tablespace name
|
||||||
|
SET client_min_messages = error; -- disable ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS warning
|
||||||
CREATE TABLESPACE pg_foo LOCATION '/no/such/location';
|
CREATE TABLESPACE pg_foo LOCATION '/no/such/location';
|
||||||
|
RESET client_min_messages;
|
||||||
|
|
||||||
-- triggers
|
-- triggers
|
||||||
CREATE TRIGGER t1 BEFORE INSERT ON pg_description EXECUTE FUNCTION tf1();
|
CREATE TRIGGER t1 BEFORE INSERT ON pg_description EXECUTE FUNCTION tf1();
|
||||||
|
Reference in New Issue
Block a user