Skip to content

Commit 0e18d7e

Browse files
committed
Reduce verbosity of messages in init_fail test
1 parent 55a5bc7 commit 0e18d7e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

expected/init_fail.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ GRANT ALL ON SCHEMA pglogical TO nonreplica;
99
GRANT ALL ON ALL TABLES IN SCHEMA pglogical TO nonreplica;
1010
\c :subscriber_dsn
1111
SET client_min_messages = 'warning';
12+
\set VERBOSITY terse
1213
CREATE EXTENSION IF NOT EXISTS pglogical;
1314
-- fail (local node not existing)
1415
SELECT * FROM pglogical.create_subscription(
@@ -30,7 +31,6 @@ SELECT * FROM pglogical.create_subscription(
3031
forward_origins := '{}');
3132
ERROR: could not connect to the postgresql server: FATAL: role "nonexisting" does not exist
3233

33-
DETAIL: dsn was: dbname=regression user=nonexisting
3434
-- fail (remote node not existing)
3535
SELECT * FROM pglogical.create_subscription(
3636
subscription_name := 'test_subscription',
@@ -48,14 +48,14 @@ SELECT * FROM pglogical.create_node(node_name := 'test_provider', dsn := (SELECT
4848
(1 row)
4949

5050
\c :subscriber_dsn
51+
\set VERBOSITY terse
5152
-- fail (can't connect with replication connection to remote)
5253
SELECT * FROM pglogical.create_subscription(
5354
subscription_name := 'test_subscription',
5455
provider_dsn := (SELECT provider_dsn FROM pglogical_regress_variables()) || ' user=nonreplica',
5556
forward_origins := '{}');
5657
ERROR: could not connect to the postgresql server in replication mode: FATAL: no pg_hba.conf entry for replication connection from host "[local]", user "nonreplica"
5758

58-
DETAIL: dsn was: dbname=regression user=nonreplica
5959
-- cleanup
6060
SELECT * FROM pglogical.drop_node('test_subscriber');
6161
drop_node

sql/init_fail.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ GRANT ALL ON ALL TABLES IN SCHEMA pglogical TO nonreplica;
1212

1313
\c :subscriber_dsn
1414
SET client_min_messages = 'warning';
15+
\set VERBOSITY terse
1516
CREATE EXTENSION IF NOT EXISTS pglogical;
1617

1718
-- fail (local node not existing)
@@ -40,6 +41,7 @@ SELECT * FROM pglogical.create_subscription(
4041
SELECT * FROM pglogical.create_node(node_name := 'test_provider', dsn := (SELECT provider_dsn FROM pglogical_regress_variables()) || ' user=nonreplica');
4142

4243
\c :subscriber_dsn
44+
\set VERBOSITY terse
4345

4446
-- fail (can't connect with replication connection to remote)
4547
SELECT * FROM pglogical.create_subscription(

0 commit comments

Comments
 (0)