Limit sequence SELECT to last_value

Unbounded column output differs by version.
pull/1377/head
Jason Petersen 2017-05-01 16:09:17 -07:00
parent 51137184d9
commit 791cdd7648
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
2 changed files with 10 additions and 10 deletions

View File

@ -206,10 +206,10 @@ SELECT groupid FROM pg_dist_local_group;
12 12
(1 row) (1 row)
SELECT * FROM mx_sequence_value_seq; SELECT last_value FROM mx_sequence_value_seq;
sequence_name | last_value | start_value | increment_by | max_value | min_value | cache_value | log_cnt | is_cycled | is_called last_value
-----------------------+------------------+------------------+--------------+------------------+------------------+-------------+---------+-----------+----------- ------------------
mx_sequence_value_seq | 3377699720527873 | 3377699720527873 | 1 | 3659174697238529 | 3377699720527873 | 1 | 0 | f | f 3377699720527873
(1 row) (1 row)
\c - - - :worker_2_port \c - - - :worker_2_port
@ -219,10 +219,10 @@ SELECT groupid FROM pg_dist_local_group;
14 14
(1 row) (1 row)
SELECT * FROM mx_sequence_value_seq; SELECT last_value FROM mx_sequence_value_seq;
sequence_name | last_value | start_value | increment_by | max_value | min_value | cache_value | log_cnt | is_cycled | is_called last_value
-----------------------+------------------+------------------+--------------+------------------+------------------+-------------+---------+-----------+----------- ------------------
mx_sequence_value_seq | 3940649673949185 | 3940649673949185 | 1 | 4222124650659841 | 3940649673949185 | 1 | 0 | f | f 3940649673949185
(1 row) (1 row)
\c - - - :master_port \c - - - :master_port

View File

@ -103,12 +103,12 @@ SELECT create_distributed_table('mx_sequence', 'key');
\c - - - :worker_1_port \c - - - :worker_1_port
SELECT groupid FROM pg_dist_local_group; SELECT groupid FROM pg_dist_local_group;
SELECT * FROM mx_sequence_value_seq; SELECT last_value FROM mx_sequence_value_seq;
\c - - - :worker_2_port \c - - - :worker_2_port
SELECT groupid FROM pg_dist_local_group; SELECT groupid FROM pg_dist_local_group;
SELECT * FROM mx_sequence_value_seq; SELECT last_value FROM mx_sequence_value_seq;
\c - - - :master_port \c - - - :master_port