Don't select log_cnt in sequence regression tests.

It's not entirely stable.

Per suggestion from Josh Kupershmidt.
This commit is contained in:
Robert Haas 2011-06-22 09:39:31 -04:00
parent 5da417f7c4
commit addf11f9a2
2 changed files with 14 additions and 10 deletions

View File

@ -172,10 +172,11 @@ DROP SEQUENCE sequence_test;
-- renaming sequences
CREATE SEQUENCE foo_seq;
ALTER TABLE foo_seq RENAME TO foo_seq_new;
SELECT * FROM foo_seq_new;
sequence_name | last_value | start_value | increment_by | max_value | min_value | cache_value | log_cnt | is_cycled | is_called
---------------+------------+-------------+--------------+---------------------+-----------+-------------+---------+-----------+-----------
foo_seq | 1 | 1 | 1 | 9223372036854775807 | 1 | 1 | 1 | f | f
SELECT sequence_name, last_value, start_value, increment_by, max_value,
min_value, cache_value, is_cycled, is_called FROM foo_seq_new;
sequence_name | last_value | start_value | increment_by | max_value | min_value | cache_value | is_cycled | is_called
---------------+------------+-------------+--------------+---------------------+-----------+-------------+-----------+-----------
foo_seq | 1 | 1 | 1 | 9223372036854775807 | 1 | 1 | f | f
(1 row)
SELECT nextval('foo_seq_new');
@ -190,10 +191,11 @@ SELECT nextval('foo_seq_new');
2
(1 row)
SELECT * FROM foo_seq_new;
sequence_name | last_value | start_value | increment_by | max_value | min_value | cache_value | log_cnt | is_cycled | is_called
---------------+------------+-------------+--------------+---------------------+-----------+-------------+---------+-----------+-----------
foo_seq | 2 | 1 | 1 | 9223372036854775807 | 1 | 1 | 32 | f | t
SELECT sequence_name, last_value, start_value, increment_by, max_value,
min_value, cache_value, is_cycled, is_called FROM foo_seq_new;
sequence_name | last_value | start_value | increment_by | max_value | min_value | cache_value | is_cycled | is_called
---------------+------------+-------------+--------------+---------------------+-----------+-------------+-----------+-----------
foo_seq | 2 | 1 | 1 | 9223372036854775807 | 1 | 1 | f | t
(1 row)
DROP SEQUENCE foo_seq_new;

View File

@ -78,10 +78,12 @@ DROP SEQUENCE sequence_test;
-- renaming sequences
CREATE SEQUENCE foo_seq;
ALTER TABLE foo_seq RENAME TO foo_seq_new;
SELECT * FROM foo_seq_new;
SELECT sequence_name, last_value, start_value, increment_by, max_value,
min_value, cache_value, is_cycled, is_called FROM foo_seq_new;
SELECT nextval('foo_seq_new');
SELECT nextval('foo_seq_new');
SELECT * FROM foo_seq_new;
SELECT sequence_name, last_value, start_value, increment_by, max_value,
min_value, cache_value, is_cycled, is_called FROM foo_seq_new;
DROP SEQUENCE foo_seq_new;
-- renaming serial sequences