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

Commit00e59b5

Browse files
committed
Fix CLUSTER regression failure caused by new patch, from Neil Conway
1 parent24b130c commit00e59b5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ INSERT INTO clstr_2 VALUES (2);
302302
INSERT INTO clstr_2 VALUES (1);
303303
INSERT INTO clstr_3 VALUES (2);
304304
INSERT INTO clstr_3 VALUES (1);
305+
-- "CLUSTER <tablename>" on a table that hasn't been clustered
306+
CLUSTER clstr_2;
307+
ERROR: CLUSTER: No previously clustered index found on table clstr_2
305308
CLUSTER clstr_1_pkey ON clstr_1;
306309
CLUSTER clstr_2_pkey ON clstr_2;
307310
SELECT * FROM clstr_1 UNION ALL
@@ -344,6 +347,18 @@ SELECT * FROM clstr_1 UNION ALL
344347
1
345348
(6 rows)
346349

350+
-- cluster a single table using the indisclustered bit previously set
351+
DELETE FROM clstr_1;
352+
INSERT INTO clstr_1 VALUES (2);
353+
INSERT INTO clstr_1 VALUES (1);
354+
CLUSTER clstr_1;
355+
SELECT * FROM clstr_1;
356+
a
357+
---
358+
1
359+
2
360+
(2 rows)
361+
347362
-- clean up
348363
\c -
349364
DROP TABLE clstr_1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp