Skip to content

Commit c03d91d

Browse files
committed
Fix table name collision in tests in 0452b46
1 parent 0452b46 commit c03d91d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/test/regress/expected/aggregates.out

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,26 +2876,26 @@ RESET enable_incremental_sort;
28762876
DROP TABLE btg;
28772877
-- The case, when scanning sort order correspond to aggregate sort order but
28782878
-- can not be found in the group-by list
2879-
CREATE TABLE t1 (c1 int PRIMARY KEY, c2 int);
2880-
CREATE UNIQUE INDEX ON t1(c2);
2879+
CREATE TABLE agg_sort_order (c1 int PRIMARY KEY, c2 int);
2880+
CREATE UNIQUE INDEX ON agg_sort_order(c2);
28812881
explain (costs off)
28822882
SELECT array_agg(c1 ORDER BY c2),c2
2883-
FROM t1 WHERE c2 < 100 GROUP BY c1 ORDER BY 2;
2884-
QUERY PLAN
2885-
--------------------------------------------------------
2883+
FROM agg_sort_order WHERE c2 < 100 GROUP BY c1 ORDER BY 2;
2884+
QUERY PLAN
2885+
--------------------------------------------------------------------
28862886
Sort
28872887
Sort Key: c2
28882888
-> GroupAggregate
28892889
Group Key: c1
28902890
-> Sort
28912891
Sort Key: c1, c2
2892-
-> Bitmap Heap Scan on t1
2892+
-> Bitmap Heap Scan on agg_sort_order
28932893
Recheck Cond: (c2 < 100)
2894-
-> Bitmap Index Scan on t1_c2_idx
2894+
-> Bitmap Index Scan on agg_sort_order_c2_idx
28952895
Index Cond: (c2 < 100)
28962896
(10 rows)
28972897

2898-
DROP TABLE t1 CASCADE;
2898+
DROP TABLE agg_sort_order CASCADE;
28992899
-- Check, that GROUP-BY reordering optimization can operate with pathkeys, built
29002900
-- by planner itself. For example, by MergeJoin.
29012901
SET enable_hashjoin = off;

src/test/regress/sql/aggregates.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,12 +1233,12 @@ DROP TABLE btg;
12331233

12341234
-- The case, when scanning sort order correspond to aggregate sort order but
12351235
-- can not be found in the group-by list
1236-
CREATE TABLE t1 (c1 int PRIMARY KEY, c2 int);
1237-
CREATE UNIQUE INDEX ON t1(c2);
1236+
CREATE TABLE agg_sort_order (c1 int PRIMARY KEY, c2 int);
1237+
CREATE UNIQUE INDEX ON agg_sort_order(c2);
12381238
explain (costs off)
12391239
SELECT array_agg(c1 ORDER BY c2),c2
1240-
FROM t1 WHERE c2 < 100 GROUP BY c1 ORDER BY 2;
1241-
DROP TABLE t1 CASCADE;
1240+
FROM agg_sort_order WHERE c2 < 100 GROUP BY c1 ORDER BY 2;
1241+
DROP TABLE agg_sort_order CASCADE;
12421242

12431243
-- Check, that GROUP-BY reordering optimization can operate with pathkeys, built
12441244
-- by planner itself. For example, by MergeJoin.

0 commit comments

Comments
 (0)