Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdb7c7b8

Browse files
committed
Improve stability of identity.sql regression test.
I noticed while trying to run the regression tests under a lowgeqo_threshold that one query on information_schema.columns hadunstable (as in, variable from one run to the next) output order.This is pretty unsurprising given the complexity of the underlyingplan. Interestingly, of this test's three nigh-identical queries oninformation_schema.columns, the other two already had ORDER BY clausesguaranteeing stable output. Let's make this one look the same.Back-patch to v10 where this test was added. We've not heard fieldreports of the test failing, but this experience shows that it canhappen when testing under even slightly unusual conditions.
1 parent65aa18e commitdb7c7b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/test/regress/expected/identity.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ SELECT * FROM itest6;
303303
102 |
304304
(3 rows)
305305

306-
SELECT table_name, column_name, is_identity, identity_generation FROM information_schema.columns WHERE table_name = 'itest6';
306+
SELECT table_name, column_name, is_identity, identity_generation FROM information_schema.columns WHERE table_name = 'itest6' ORDER BY 1, 2;
307307
table_name | column_name | is_identity | identity_generation
308308
------------+-------------+-------------+---------------------
309309
itest6 | a | YES | BY DEFAULT

‎src/test/regress/sql/identity.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ INSERT INTO itest6 DEFAULT VALUES;
183183
INSERT INTO itest6 DEFAULTVALUES;
184184
SELECT*FROM itest6;
185185

186-
SELECT table_name, column_name, is_identity, identity_generationFROMinformation_schema.columnsWHERE table_name='itest6';
186+
SELECT table_name, column_name, is_identity, identity_generationFROMinformation_schema.columnsWHERE table_name='itest6'ORDER BY1,2;
187187

188188
ALTERTABLE itest6 ALTER COLUMN bSET INCREMENT BY2;-- fail, not identity
189189

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp