Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
addf11f9
Commit
addf11f9
authored
Jun 22, 2011
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't select log_cnt in sequence regression tests.
It's not entirely stable. Per suggestion from Josh Kupershmidt.
parent
5da417f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
src/test/regress/expected/sequence.out
src/test/regress/expected/sequence.out
+10
-8
src/test/regress/sql/sequence.sql
src/test/regress/sql/sequence.sql
+4
-2
No files found.
src/test/regress/expected/sequence.out
View file @
addf11f9
...
...
@@ -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;
...
...
src/test/regress/sql/sequence.sql
View file @
addf11f9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment