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

Commit7e2db83

Browse files
danolivoAndrey Lepikhov
authored and
Andrey Lepikhov
committed
Fix the problem with system-dependent
detailed information in the EXPLAIN ANALYZE of a join node.
1 parenta936846 commit7e2db83

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

‎expected/aqo_fdw.out‎

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,28 @@ SELECT x FROM frgn WHERE x < -10; -- AQO ignores constants
7171
(4 rows)
7272

7373
-- Trivial JOIN push-down.
74-
EXPLAIN (ANALYZE,COSTS OFF, SUMMARY OFF, TIMING OFF)
74+
EXPLAIN (COSTS OFF)
7575
SELECT * FROM frgn AS a, frgn AS b WHERE a.x=b.x;
76-
QUERY PLAN
77-
---------------------------------------------------------------------------
78-
Merge Join (actual rows=1 loops=1) (AQO not used)
76+
QUERY PLAN
77+
------------------------------------
78+
Merge Join
7979
Merge Cond: (a.x = b.x)
80-
-> Sort (actual rows=1 loops=1) (AQO not used)
80+
-> Sort
8181
Sort Key: a.x
82-
Sort Method: quicksort Memory: 25kB
83-
-> Foreign Scan on frgn a (actual rows=1 loops=1) (AQO not used)
84-
-> Sort (actual rows=1 loops=1) (AQO not used)
82+
-> Foreign Scan on frgn a
83+
-> Sort
8584
Sort Key: b.x
86-
Sort Method: quicksort Memory: 25kB
87-
-> Foreign Scan on frgn b (actual rows=1 loops=1) (AQO not used)
85+
-> Foreign Scan on frgn b
8886
Using aqo: true
8987
AQO mode: LEARN
9088
JOINS: 0
91-
(13 rows)
89+
(11 rows)
90+
91+
SELECT * FROM frgn AS a, frgn AS b WHERE a.x=b.x;
92+
x | x
93+
---+---
94+
1 | 1
95+
(1 row)
9296

9397
EXPLAIN (ANALYZE, COSTS OFF, SUMMARY OFF, TIMING OFF, VERBOSE)
9498
SELECT * FROM frgn AS a, frgn AS b WHERE a.x=b.x;

‎sql/aqo_fdw.sql‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ EXPLAIN (ANALYZE, COSTS OFF, SUMMARY OFF, TIMING OFF)
4141
SELECT xFROM frgnWHERE x<-10;-- AQO ignores constants
4242

4343
-- Trivial JOIN push-down.
44-
EXPLAIN (ANALYZE, COSTS OFF, SUMMARY OFF, TIMING OFF)
44+
EXPLAIN (COSTS OFF)
45+
SELECT*FROM frgnAS a, frgnAS bWHEREa.x=b.x;
4546
SELECT*FROM frgnAS a, frgnAS bWHEREa.x=b.x;
4647
EXPLAIN (ANALYZE, COSTS OFF, SUMMARY OFF, TIMING OFF, VERBOSE)
4748
SELECT*FROM frgnAS a, frgnAS bWHEREa.x=b.x;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp