Commit 579f7009 authored by Peter Eisentraut's avatar Peter Eisentraut

Better fix for sequence access in hot standby test

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>
parent 9951741b
...@@ -26,10 +26,10 @@ COPY hs1 TO '/tmp/copy_test'; ...@@ -26,10 +26,10 @@ COPY hs1 TO '/tmp/copy_test';
\! cat /tmp/copy_test \! cat /tmp/copy_test
1 1
-- Access sequence directly -- Access sequence directly
select min_value as sequence_min_value from pg_sequences where sequencename = 'hsseq'; select is_called from hsseq;
sequence_min_value is_called
-------------------- -----------
1 f
(1 row) (1 row)
-- Transactions -- Transactions
......
...@@ -16,7 +16,7 @@ COPY hs1 TO '/tmp/copy_test'; ...@@ -16,7 +16,7 @@ COPY hs1 TO '/tmp/copy_test';
\! cat /tmp/copy_test \! cat /tmp/copy_test
-- Access sequence directly -- Access sequence directly
select min_value as sequence_min_value from pg_sequences where sequencename = 'hsseq'; select is_called from hsseq;
-- Transactions -- Transactions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment