Skip to content

Commit 88d45ac

Browse files
committed
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
1 parent 9989d37 commit 88d45ac

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/test/modules/unsafe_tests/expected/alter_system_table.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ BEGIN;
152152
ALTER TABLE pg_description SET SCHEMA public;
153153
ROLLBACK;
154154
-- reserved tablespace name
155+
SET client_min_messages = error; -- disable ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS warning
155156
CREATE TABLESPACE pg_foo LOCATION '/no/such/location';
156157
ERROR: directory "/no/such/location" does not exist
158+
RESET client_min_messages;
157159
-- triggers
158160
CREATE TRIGGER t1 BEFORE INSERT ON pg_description EXECUTE FUNCTION tf1();
159161
ALTER TRIGGER t1 ON pg_description RENAME TO t2;

src/test/modules/unsafe_tests/sql/alter_system_table.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ ALTER TABLE pg_description SET SCHEMA public;
166166
ROLLBACK;
167167

168168
-- reserved tablespace name
169+
SET client_min_messages = error; -- disable ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS warning
169170
CREATE TABLESPACE pg_foo LOCATION '/no/such/location';
171+
RESET client_min_messages;
170172

171173
-- triggers
172174
CREATE TRIGGER t1 BEFORE INSERT ON pg_description EXECUTE FUNCTION tf1();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy