]> granicus.if.org Git - postgresql/commitdiff
Better fix for sequence access in hot standby test
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 4 Jan 2017 17:00:00 +0000 (12:00 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 4 Jan 2017 13:47:18 +0000 (08:47 -0500)
The purpose of the test was to check access to the sequence relation on
a hot standby, so change the test to read a different column from the
sequence, instead of just reading the catalog.

From: Andreas Karlsson <andreas@proxel.se>

src/test/regress/expected/hs_standby_allowed.out
src/test/regress/sql/hs_standby_allowed.sql

index 487b30e1eee38a35a6184a59fa4b268b2bf081d2..526f88f2bec3bba1ba2aec99cedae2e4db035024 100644 (file)
@@ -26,10 +26,10 @@ COPY hs1 TO '/tmp/copy_test';
 \! cat /tmp/copy_test
 1
 -- Access sequence directly
-select min_value as sequence_min_value from pg_sequences where sequencename = 'hsseq';
- sequence_min_value 
---------------------
-                  1
+select is_called from hsseq;
+ is_called 
+-----------
+ f
 (1 row)
 
 -- Transactions
index 26fb65cb49267f0dedee517fd18d473cf0fd45f4..a33199dbbdf726d282c9b68346398aa8a5a0338d 100644 (file)
@@ -16,7 +16,7 @@ COPY hs1 TO '/tmp/copy_test';
 \! cat /tmp/copy_test
 
 -- Access sequence directly
-select min_value as sequence_min_value from pg_sequences where sequencename = 'hsseq';
+select is_called from hsseq;
 
 -- Transactions