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

Commit6f4a546

Browse files
committed
Add an ORDER BY to nail down the expected row order from a query that's
been shown to be sensitive to concurrent autovacuum. Per Alvaro.
1 parenta4df52f commit6f4a546

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,12 @@ SELECT a,b,c,substring(d for 30), length(d) from clstr_tst;
249249
INSERT INTO clstr_tst (b, c) VALUES (1111, 'this should fail');
250250
ERROR: insert or update on table "clstr_tst" violates foreign key constraint "clstr_tst_con"
251251
DETAIL: Key (b)=(1111) is not present in table "clstr_tst_s".
252-
SELECT conname FROM pg_constraint WHERE conrelid = 'clstr_tst'::regclass;
252+
SELECT conname FROM pg_constraint WHERE conrelid = 'clstr_tst'::regclass
253+
ORDER BY 1;
253254
conname
254255
----------------
255-
clstr_tst_pkey
256256
clstr_tst_con
257+
clstr_tst_pkey
257258
(2 rows)
258259

259260
SELECT relname, relkind,

‎src/test/regress/sql/cluster.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ SELECT a,b,c,substring(d for 30), length(d) from clstr_tst;
7373
-- Verify that foreign key link still works
7474
INSERT INTO clstr_tst (b, c)VALUES (1111,'this should fail');
7575

76-
SELECT connameFROM pg_constraintWHERE conrelid='clstr_tst'::regclass;
76+
SELECT connameFROM pg_constraintWHERE conrelid='clstr_tst'::regclass
77+
ORDER BY1;
7778

7879

7980
SELECT relname, relkind,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp