aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/sql/postgres_fdw.sql
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2021-01-26 16:36:21 +0900
committerFujii Masao <fujii@postgresql.org>2021-01-26 16:36:21 +0900
commit6adc5376dca4ef8b7d591c0ee7338cb9ff660216 (patch)
tree93213e7d37fa2c0f004357d2f72a48e43e84e304 /contrib/postgres_fdw/sql/postgres_fdw.sql
parent411ae64997dc3a42d19eda6721c581841ce2cb82 (diff)
downloadpostgresql-6adc5376dca4ef8b7d591c0ee7338cb9ff660216.tar.gz
postgresql-6adc5376dca4ef8b7d591c0ee7338cb9ff660216.zip
postgres_fdw: Stabilize regression test for postgres_fdw_disconnect_all().
The regression test added in commit 411ae64997 caused buildfarm failures. The cause of them was that the order of warning messages output in the test was not stable. To fix this, this commit sets client_min_messages to ERROR temporarily when performing the test generating those warnings. Per buildfarm failures. Discussion: https://postgr.es/m/2147113.1611644754@sss.pgh.pa.us
Diffstat (limited to 'contrib/postgres_fdw/sql/postgres_fdw.sql')
-rw-r--r--contrib/postgres_fdw/sql/postgres_fdw.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/postgres_fdw/sql/postgres_fdw.sql b/contrib/postgres_fdw/sql/postgres_fdw.sql
index 9473ab07623..62382d1a55f 100644
--- a/contrib/postgres_fdw/sql/postgres_fdw.sql
+++ b/contrib/postgres_fdw/sql/postgres_fdw.sql
@@ -2779,7 +2779,10 @@ SELECT 1 FROM ft8 LIMIT 1;
SELECT * FROM postgres_fdw_get_connections() ORDER BY 1;
DROP SERVER loopback4 CASCADE;
-- Return false as connections are still in use, warnings are issued.
+-- But disable warnings temporarily because the order of them is not stable.
+SET client_min_messages = 'ERROR';
SELECT postgres_fdw_disconnect_all();
+RESET client_min_messages;
COMMIT;
-- Close loopback2 connection and return true.
SELECT postgres_fdw_disconnect('loopback2');