aboutsummaryrefslogtreecommitdiff
path: root/src/test/regress/expected/inherit.out
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/regress/expected/inherit.out')
-rw-r--r--src/test/regress/expected/inherit.out57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/test/regress/expected/inherit.out b/src/test/regress/expected/inherit.out
index 36d90f5bba1..c79b8f950f1 100644
--- a/src/test/regress/expected/inherit.out
+++ b/src/test/regress/expected/inherit.out
@@ -1203,6 +1203,28 @@ select * from matest0 order by 1-id;
1 | Test 1
(6 rows)
+explain (verbose, costs off) select min(1-id) from matest0;
+ QUERY PLAN
+------------------------------------------------
+ Aggregate
+ Output: min((1 - public.matest0.id))
+ -> Append
+ -> Seq Scan on public.matest0
+ Output: public.matest0.id
+ -> Seq Scan on public.matest1 matest0
+ Output: public.matest0.id
+ -> Seq Scan on public.matest2 matest0
+ Output: public.matest0.id
+ -> Seq Scan on public.matest3 matest0
+ Output: public.matest0.id
+(11 rows)
+
+select min(1-id) from matest0;
+ min
+-----
+ -5
+(1 row)
+
reset enable_indexscan;
set enable_seqscan = off; -- plan with fewest seqscans should be merge
explain (verbose, costs off) select * from matest0 order by 1-id;
@@ -1236,6 +1258,41 @@ select * from matest0 order by 1-id;
1 | Test 1
(6 rows)
+explain (verbose, costs off) select min(1-id) from matest0;
+ QUERY PLAN
+--------------------------------------------------------------------------------------
+ Result
+ Output: $0
+ InitPlan 1 (returns $0)
+ -> Limit
+ Output: ((1 - public.matest0.id))
+ -> Result
+ Output: ((1 - public.matest0.id))
+ -> Merge Append
+ Sort Key: ((1 - public.matest0.id))
+ -> Index Scan using matest0i on public.matest0
+ Output: public.matest0.id, (1 - public.matest0.id)
+ Index Cond: ((1 - public.matest0.id) IS NOT NULL)
+ -> Index Scan using matest1i on public.matest1 matest0
+ Output: public.matest0.id, (1 - public.matest0.id)
+ Index Cond: ((1 - public.matest0.id) IS NOT NULL)
+ -> Sort
+ Output: public.matest0.id, ((1 - public.matest0.id))
+ Sort Key: ((1 - public.matest0.id))
+ -> Seq Scan on public.matest2 matest0
+ Output: public.matest0.id, (1 - public.matest0.id)
+ Filter: ((1 - public.matest0.id) IS NOT NULL)
+ -> Index Scan using matest3i on public.matest3 matest0
+ Output: public.matest0.id, (1 - public.matest0.id)
+ Index Cond: ((1 - public.matest0.id) IS NOT NULL)
+(24 rows)
+
+select min(1-id) from matest0;
+ min
+-----
+ -5
+(1 row)
+
reset enable_seqscan;
drop table matest0 cascade;
NOTICE: drop cascades to 3 other objects