@@ -4696,7 +4696,7 @@ SELECT max(b2t1.c1) FROM s1.t1 b2t1 WHERE b2t1.c1 = 1
46964696SELECT max(b4t1.c1) FROM s1.t1 b4t1 WHERE b4t1.c1 = 1);
46974697 QUERY PLAN
46984698---------------------------------------------------------------------
4699- Result
4699+ Aggregate
47004700 InitPlan 2 (returns $1)
47014701 -> Result
47024702 InitPlan 1 (returns $0)
@@ -4709,11 +4709,9 @@ SELECT max(b4t1.c1) FROM s1.t1 b4t1 WHERE b4t1.c1 = 1);
47094709 -> Limit
47104710 -> Index Only Scan using t1_i1 on t1 b4t1
47114711 Index Cond: ((c1 IS NOT NULL) AND (c1 = 1))
4712- InitPlan 5 (returns $4)
4713- -> Limit
4714- -> Index Only Scan using t1_i1 on t1 b3t1
4715- Index Cond: ((c1 IS NOT NULL) AND (c1 = $3))
4716- (17 rows)
4712+ -> Index Only Scan using t1_i1 on t1 b3t1
4713+ Index Cond: (c1 = $3)
4714+ (15 rows)
47174715
47184716/*+SeqScan(b1t1)IndexScan(b2t1 t1_pkey)BitmapScan(b3t1 t1_pkey)TidScan(b4t1)
47194717*/
@@ -4727,7 +4725,6 @@ SELECT max(b4t1.c1) FROM s1.t1 b4t1 WHERE b4t1.c1 = 1);
47274725LOG: available indexes for IndexScan(b2t1): t1_pkey
47284726LOG: available indexes for IndexScan(b2t1): t1_pkey
47294727LOG: available indexes for BitmapScan(b3t1): t1_pkey
4730- LOG: available indexes for BitmapScan(b3t1): t1_pkey
47314728LOG: pg_hint_plan:
47324729used hint:
47334730IndexScan(b2t1 t1_pkey)
@@ -4740,7 +4737,7 @@ error hint:
47404737
47414738 QUERY PLAN
47424739---------------------------------------------------------------------
4743- Result
4740+ Aggregate
47444741 InitPlan 2 (returns $1)
47454742 -> Result
47464743 InitPlan 1 (returns $0)
@@ -4753,13 +4750,11 @@ error hint:
47534750 -> Limit
47544751 -> Seq Scan on t1 b4t1
47554752 Filter: ((c1 IS NOT NULL) AND (c1 = 1))
4756- InitPlan 5 (returns $4)
4757- -> Limit
4758- -> Bitmap Heap Scan on t1 b3t1
4759- Recheck Cond: ((c1 IS NOT NULL) AND (c1 = $3))
4760- -> Bitmap Index Scan on t1_pkey
4761- Index Cond: ((c1 IS NOT NULL) AND (c1 = $3))
4762- (19 rows)
4753+ -> Bitmap Heap Scan on t1 b3t1
4754+ Recheck Cond: (c1 = $3)
4755+ -> Bitmap Index Scan on t1_pkey
4756+ Index Cond: (c1 = $3)
4757+ (17 rows)
47634758
47644759-- No. S-3-7-2
47654760EXPLAIN (COSTS false)