Skip to content

Commit 00e59b5

Browse files
committed
Fix CLUSTER regression failure caused by new patch, from Neil Conway
1 parent 24b130c commit 00e59b5

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy