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

Commite899742

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 parent10c5291 commite899742

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
@@ -335,7 +335,7 @@ SELECT * FROM itest6;
335335
102 |
336336
(3 rows)
337337

338-
SELECT table_name, column_name, is_identity, identity_generation FROM information_schema.columns WHERE table_name = 'itest6';
338+
SELECT table_name, column_name, is_identity, identity_generation FROM information_schema.columns WHERE table_name = 'itest6' ORDER BY 1, 2;
339339
table_name | column_name | is_identity | identity_generation
340340
------------+-------------+-------------+---------------------
341341
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
@@ -208,7 +208,7 @@ INSERT INTO itest6 DEFAULT VALUES;
208208
INSERT INTO itest6 DEFAULTVALUES;
209209
SELECT*FROM itest6;
210210

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

213213
ALTERTABLE itest6 ALTER COLUMN bSET INCREMENT BY2;-- fail, not identity
214214

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp