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

Commitc03d91d

Browse files
committed
Fix table name collision in tests in0452b46
1 parent0452b46 commitc03d91d

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 TABLEt1 (c1 int PRIMARY KEY, c2 int);
2880-
CREATE UNIQUE INDEX ONt1(c2);
2879+
CREATE TABLEagg_sort_order (c1 int PRIMARY KEY, c2 int);
2880+
CREATE UNIQUE INDEX ONagg_sort_order(c2);
28812881
explain (costs off)
28822882
SELECT array_agg(c1 ORDER BY c2),c2
2883-
FROMt1 WHERE c2 < 100 GROUP BY c1 ORDER BY 2;
2884-
QUERY PLAN
2885-
--------------------------------------------------------
2883+
FROMagg_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 ont1
2892+
-> Bitmap Heap Scan onagg_sort_order
28932893
Recheck Cond: (c2 < 100)
2894-
-> Bitmap Index Scan ont1_c2_idx
2894+
-> Bitmap Index Scan onagg_sort_order_c2_idx
28952895
Index Cond: (c2 < 100)
28962896
(10 rows)
28972897

2898-
DROP TABLEt1 CASCADE;
2898+
DROP TABLEagg_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-
CREATETABLEt1 (c1intPRIMARY KEY, c2int);
1237-
CREATEUNIQUE INDEXONt1(c2);
1236+
CREATETABLEagg_sort_order (c1intPRIMARY KEY, c2int);
1237+
CREATEUNIQUE INDEXONagg_sort_order(c2);
12381238
explain (costs off)
12391239
SELECT array_agg(c1ORDER BY c2),c2
1240-
FROMt1WHERE c2<100GROUP BY c1ORDER BY2;
1241-
DROPTABLEt1 CASCADE;
1240+
FROMagg_sort_orderWHERE c2<100GROUP BY c1ORDER BY2;
1241+
DROPTABLEagg_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)

[8]ページ先頭

©2009-2025 Movatter.jp