Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88d45ac

Browse files
committed
Fix alter_system_table test
Add workaround for disabling ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONSwarning for the test that tries to create a tablespace with a reservedname.Discussion:https://www.postgresql.org/message-id/flat/E1iacW7-0003h6-6U%40gemulon.postgresql.org
1 parent9989d37 commit88d45ac

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
CREATETABLESPACEpg_foo LOCATION'/no/such/location';
171+
RESET client_min_messages;
170172

171173
-- triggers
172174
CREATETRIGGERt1 BEFORE INSERTON pg_description EXECUTE FUNCTION tf1();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp