diff options
| author | Peter Eisentraut <peter@eisentraut.org> | 2022-09-24 18:38:35 -0400 |
|---|---|---|
| committer | Peter Eisentraut <peter@eisentraut.org> | 2022-09-24 18:41:25 -0400 |
| commit | 26f7802beb2a4aafa0903f5bedeb7f1fa6f4f358 (patch) | |
| tree | dc9a4b176f6a37ca32b2667deb5e635196a0d70f /src/test | |
| parent | a6bc3301925e1a8ad1f58da629b9dd55bc4b8d9c (diff) | |
Message style improvements
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/recovery/t/006_logical_decoding.pl | 2 | ||||
| -rw-r--r-- | src/test/regress/expected/foreign_key.out | 4 | ||||
| -rw-r--r-- | src/test/regress/expected/publication.out | 12 | ||||
| -rw-r--r-- | src/test/regress/expected/triggers.out | 2 | ||||
| -rw-r--r-- | src/test/subscription/t/027_nosuperuser.pl | 6 | ||||
| -rw-r--r-- | src/test/subscription/t/029_on_error.pl | 2 |
6 files changed, 14 insertions, 14 deletions
diff --git a/src/test/recovery/t/006_logical_decoding.pl b/src/test/recovery/t/006_logical_decoding.pl index 0cd0467fbb8..a9edd8ccfca 100644 --- a/src/test/recovery/t/006_logical_decoding.pl +++ b/src/test/recovery/t/006_logical_decoding.pl @@ -45,7 +45,7 @@ ok( $stderr =~ replication => 'database'); like( $stderr, - qr/cannot use "READ_REPLICATION_SLOT" with logical replication slot "test_slot"/, + qr/cannot use READ_REPLICATION_SLOT with a logical replication slot/, 'READ_REPLICATION_SLOT not supported for logical slots'); # Check case of walsender not using a database connection. Logical diff --git a/src/test/regress/expected/foreign_key.out b/src/test/regress/expected/foreign_key.out index f9092d5929f..8bb3e58494c 100644 --- a/src/test/regress/expected/foreign_key.out +++ b/src/test/regress/expected/foreign_key.out @@ -2761,8 +2761,8 @@ DELETE FROM fkpart11.fk WHERE a = 4; ALTER TABLE fkpart11.fk ADD CONSTRAINT fkey FOREIGN KEY (a) REFERENCES fkpart11.pk1 (a) ON UPDATE CASCADE ON DELETE CASCADE; UPDATE fkpart11.pk SET a = a - 1; ERROR: cannot move tuple across partitions when a non-root ancestor of the source partition is directly referenced in a foreign key -DETAIL: A foreign key points to ancestor "pk1", but not the root ancestor "pk". -HINT: Consider defining the foreign key on "pk". +DETAIL: A foreign key points to ancestor "pk1" but not the root ancestor "pk". +HINT: Consider defining the foreign key on table "pk". -- it's okay though if the non-leaf partition is updated directly UPDATE fkpart11.pk1 SET a = a - 1; SELECT tableoid::pg_catalog.regclass, * FROM fkpart11.pk; diff --git a/src/test/regress/expected/publication.out b/src/test/regress/expected/publication.out index c0c0e7d92e0..bfce1e1bc09 100644 --- a/src/test/regress/expected/publication.out +++ b/src/test/regress/expected/publication.out @@ -72,15 +72,15 @@ DETAIL: Tables cannot be added to or dropped from FOR ALL TABLES publications. -- fail - can't add schema to 'FOR ALL TABLES' publication ALTER PUBLICATION testpub_foralltables ADD TABLES IN SCHEMA pub_test; ERROR: publication "testpub_foralltables" is defined as FOR ALL TABLES -DETAIL: Tables from schema cannot be added to, dropped from, or set on FOR ALL TABLES publications. +DETAIL: Schemas cannot be added to or dropped from FOR ALL TABLES publications. -- fail - can't drop schema from 'FOR ALL TABLES' publication ALTER PUBLICATION testpub_foralltables DROP TABLES IN SCHEMA pub_test; ERROR: publication "testpub_foralltables" is defined as FOR ALL TABLES -DETAIL: Tables from schema cannot be added to, dropped from, or set on FOR ALL TABLES publications. +DETAIL: Schemas cannot be added to or dropped from FOR ALL TABLES publications. -- fail - can't set schema to 'FOR ALL TABLES' publication ALTER PUBLICATION testpub_foralltables SET TABLES IN SCHEMA pub_test; ERROR: publication "testpub_foralltables" is defined as FOR ALL TABLES -DETAIL: Tables from schema cannot be added to, dropped from, or set on FOR ALL TABLES publications. +DETAIL: Schemas cannot be added to or dropped from FOR ALL TABLES publications. SET client_min_messages = 'ERROR'; CREATE PUBLICATION testpub_fortable FOR TABLE testpub_tbl1; RESET client_min_messages; @@ -470,7 +470,7 @@ CREATE PUBLICATION testpub6 FOR TABLE testpub_rf_tbl1 WHERE (a IN (SELECT genera ERROR: invalid publication WHERE expression LINE 1: ...ICATION testpub6 FOR TABLE testpub_rf_tbl1 WHERE (a IN (SELE... ^ -DETAIL: Expressions only allow columns, constants, built-in operators, built-in data types, built-in collations, and immutable built-in functions. +DETAIL: Only columns, constants, built-in operators, built-in data types, built-in collations, and immutable built-in functions are allowed. -- fail - system columns are not allowed CREATE PUBLICATION testpub6 FOR TABLE testpub_rf_tbl1 WHERE ('(0,1)'::tid = ctid); ERROR: invalid publication WHERE expression @@ -680,10 +680,10 @@ DETAIL: Column list used by the publication does not cover the replica identity ALTER PUBLICATION testpub_fortable DROP TABLE testpub_tbl5; -- error: generated column "d" can't be in list ALTER PUBLICATION testpub_fortable ADD TABLE testpub_tbl5 (a, d); -ERROR: cannot reference generated column "d" in publication column list +ERROR: cannot use generated column "d" in publication column list -- error: system attributes "ctid" not allowed in column list ALTER PUBLICATION testpub_fortable ADD TABLE testpub_tbl5 (a, ctid); -ERROR: cannot reference system column "ctid" in publication column list +ERROR: cannot use system column "ctid" in publication column list -- ok ALTER PUBLICATION testpub_fortable ADD TABLE testpub_tbl5 (a, c); ALTER TABLE testpub_tbl5 DROP COLUMN c; -- no dice diff --git a/src/test/regress/expected/triggers.out b/src/test/regress/expected/triggers.out index 8fe42ec5604..641f5e67c47 100644 --- a/src/test/regress/expected/triggers.out +++ b/src/test/regress/expected/triggers.out @@ -3546,7 +3546,7 @@ LINE 1: alter trigger a on only grandparent rename to b; ^ alter trigger b on middle rename to c; -- can't rename trigger on partition ERROR: cannot rename trigger "b" on table "middle" -HINT: Rename trigger on partitioned table "grandparent" instead. +HINT: Rename the trigger on the partitioned table "grandparent" instead. create trigger c after insert on middle for each row execute procedure f(); alter trigger b on grandparent rename to c; diff --git a/src/test/subscription/t/027_nosuperuser.pl b/src/test/subscription/t/027_nosuperuser.pl index f9f6117dfb4..8614bf0458c 100644 --- a/src/test/subscription/t/027_nosuperuser.pl +++ b/src/test/subscription/t/027_nosuperuser.pl @@ -260,7 +260,7 @@ expect_failure( 2, 11, 13, - qr/ERROR: ( [A-Z0-9]+:)? "regress_admin" cannot replicate into relation with row-level security enabled: "unpartitioned\w*"/msi, + qr/ERROR: ( [A-Z0-9]+:)? user "regress_admin" cannot replicate into relation with row-level security enabled: "unpartitioned\w*"/msi, "non-superuser admin fails to replicate insert into rls enabled table"); grant_superuser("regress_admin"); expect_replication("alice.unpartitioned", 3, 11, 15, @@ -274,7 +274,7 @@ expect_failure( 3, 11, 15, - qr/ERROR: ( [A-Z0-9]+:)? "regress_admin" cannot replicate into relation with row-level security enabled: "unpartitioned\w*"/msi, + qr/ERROR: ( [A-Z0-9]+:)? user "regress_admin" cannot replicate into relation with row-level security enabled: "unpartitioned\w*"/msi, "non-superuser admin fails to replicate update into rls enabled unpartitioned" ); @@ -289,7 +289,7 @@ expect_failure( 3, 13, 17, - qr/ERROR: ( [A-Z0-9]+:)? "regress_admin" cannot replicate into relation with row-level security enabled: "unpartitioned\w*"/msi, + qr/ERROR: ( [A-Z0-9]+:)? user "regress_admin" cannot replicate into relation with row-level security enabled: "unpartitioned\w*"/msi, "non-superuser admin without bypassrls fails to replicate delete into rls enabled unpartitioned" ); grant_bypassrls("regress_admin"); diff --git a/src/test/subscription/t/029_on_error.pl b/src/test/subscription/t/029_on_error.pl index add8788370c..1bd18a62cd8 100644 --- a/src/test/subscription/t/029_on_error.pl +++ b/src/test/subscription/t/029_on_error.pl @@ -29,7 +29,7 @@ sub test_skip_lsn # Get the finish LSN of the error transaction. my $contents = slurp_file($node_subscriber->logfile, $offset); $contents =~ - qr/processing remote data for replication origin \"pg_\d+\" during "INSERT" for replication target relation "public.tbl" in transaction \d+ finished at ([[:xdigit:]]+\/[[:xdigit:]]+)/ + qr/processing remote data for replication origin \"pg_\d+\" during message type "INSERT" for replication target relation "public.tbl" in transaction \d+, finished at ([[:xdigit:]]+\/[[:xdigit:]]+)/ or die "could not get error-LSN"; my $lsn = $1; |
