@@ -229,7 +229,7 @@ EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 7000;
229229EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100;
230230
231231 QUERY PLAN
232- ------------------------------------------------------------------------------
232+ -------------------------------------------------------------------&zwsp; -----------
233233 Bitmap Heap Scan on tenk1 (cost=5.07..229.20 rows=101 width=244)
234234 Recheck Cond: (unique1 < 100)
235235 -> Bitmap Index Scan on tenk1_unique1 (cost=0.00..5.04 rows=101 width=0)
@@ -256,7 +256,7 @@ EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100;
256256EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND stringu1 = 'xxx';
257257
258258 QUERY PLAN
259- ------------------------------------------------------------------------------
259+ -------------------------------------------------------------------&zwsp; -----------
260260 Bitmap Heap Scan on tenk1 (cost=5.04..229.43 rows=1 width=244)
261261 Recheck Cond: (unique1 < 100)
262262 Filter: (stringu1 = 'xxx'::name)
@@ -280,7 +280,7 @@ EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND stringu1 = 'xxx';
280280EXPLAIN SELECT * FROM tenk1 WHERE unique1 = 42;
281281
282282 QUERY PLAN
283- -----------------------------------------------------------------------------
283+ -------------------------------------------------------------------&zwsp; ----------
284284 Index Scan using tenk1_unique1 on tenk1 (cost=0.29..8.30 rows=1 width=244)
285285 Index Cond: (unique1 = 42)
286286</screen>
@@ -318,7 +318,7 @@ EXPLAIN SELECT * FROM tenk1 ORDER BY unique1;
318318<screen>
319319EXPLAIN SELECT * FROM tenk1 ORDER BY four, ten LIMIT 100;
320320 QUERY PLAN
321- ------------------------------------------------------------------------------------------------------
321+ -------------------------------------------------------------------&zwsp; -----------------------------------
322322 Limit (cost=521.06..538.05 rows=100 width=244)
323323 -> Incremental Sort (cost=521.06..2220.95 rows=10000 width=244)
324324 Sort Key: four, ten
@@ -343,7 +343,7 @@ EXPLAIN SELECT * FROM tenk1 ORDER BY four, ten LIMIT 100;
343343EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000;
344344
345345 QUERY PLAN
346- -------------------------------------------------------------------------------------
346+ -------------------------------------------------------------------&zwsp; ------------------
347347 Bitmap Heap Scan on tenk1 (cost=25.08..60.21 rows=10 width=244)
348348 Recheck Cond: ((unique1 < 100) AND (unique2 > 9000))
349349 -> BitmapAnd (cost=25.08..25.08 rows=10 width=0)
@@ -366,7 +366,7 @@ EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000;
366366EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000 LIMIT 2;
367367
368368 QUERY PLAN
369- -------------------------------------------------------------------------------------
369+ -------------------------------------------------------------------&zwsp; ------------------
370370 Limit (cost=0.29..14.48 rows=2 width=244)
371371 -> Index Scan using tenk1_unique2 on tenk1 (cost=0.29..71.27 rows=10 width=244)
372372 Index Cond: (unique2 > 9000)
@@ -396,7 +396,7 @@ FROM tenk1 t1, tenk2 t2
396396WHERE t1.unique1 < 10 AND t1.unique2 = t2.unique2;
397397
398398 QUERY PLAN
399- --------------------------------------------------------------------------------------
399+ -------------------------------------------------------------------&zwsp; -------------------
400400 Nested Loop (cost=4.65..118.62 rows=10 width=488)
401401 -> Bitmap Heap Scan on tenk1 t1 (cost=4.36..39.47 rows=10 width=244)
402402 Recheck Cond: (unique1 < 10)
@@ -445,7 +445,7 @@ FROM tenk1 t1, tenk2 t2
445445WHERE t1.unique1 < 10 AND t2.unique2 < 10 AND t1.hundred < t2.hundred;
446446
447447 QUERY PLAN
448- ---------------------------------------------------------------------------------------------
448+ -------------------------------------------------------------------&zwsp; --------------------------
449449 Nested Loop (cost=4.65..49.46 rows=33 width=488)
450450 Join Filter: (t1.hundred < t2.hundred)
451451 -> Bitmap Heap Scan on tenk1 t1 (cost=4.36..39.47 rows=10 width=244)
@@ -493,7 +493,7 @@ FROM tenk1 t1, tenk2 t2
493493WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2;
494494
495495 QUERY PLAN
496- ------------------------------------------------------------------------------------------
496+ -------------------------------------------------------------------&zwsp; -----------------------
497497 Hash Join (cost=230.47..713.98 rows=101 width=488)
498498 Hash Cond: (t2.unique2 = t1.unique2)
499499 -> Seq Scan on tenk2 t2 (cost=0.00..445.00 rows=10000 width=244)
@@ -524,7 +524,7 @@ FROM tenk1 t1, onek t2
524524WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2;
525525
526526 QUERY PLAN
527- ------------------------------------------------------------------------------------------
527+ -------------------------------------------------------------------&zwsp; -----------------------
528528 Merge Join (cost=198.11..268.19 rows=10 width=488)
529529 Merge Cond: (t1.unique2 = t2.unique2)
530530 -> Index Scan using tenk1_unique2 on tenk1 t1 (cost=0.29..656.28 rows=101 width=244)
@@ -562,7 +562,7 @@ FROM tenk1 t1, onek t2
562562WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2;
563563
564564 QUERY PLAN
565- ------------------------------------------------------------------------------------------
565+ -------------------------------------------------------------------&zwsp; -----------------------
566566 Merge Join (cost=0.56..292.65 rows=10 width=488)
567567 Merge Cond: (t1.unique2 = t2.unique2)
568568 -> Index Scan using tenk1_unique2 on tenk1 t1 (cost=0.29..656.28 rows=101 width=244)
@@ -596,7 +596,7 @@ FROM tenk1 t1, tenk2 t2
596596WHERE t1.unique1 < 10 AND t1.unique2 = t2.unique2;
597597
598598 QUERY PLAN
599- ---------------------------------------------------------------------------------------------------------------------------------
599+ -------------------------------------------------------------------&zwsp; --------------------------------------------------------------
600600 Nested Loop (cost=4.65..118.62 rows=10 width=488) (actual time=0.128..0.377 rows=10 loops=1)
601601 -> Bitmap Heap Scan on tenk1 t1 (cost=4.36..39.47 rows=10 width=244) (actual time=0.057..0.121 rows=10 loops=1)
602602 Recheck Cond: (unique1 < 10)
@@ -640,7 +640,7 @@ FROM tenk1 t1, tenk2 t2
640640WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2 ORDER BY t1.fivethous;
641641
642642 QUERY PLAN
643- --------------------------------------------------------------------------------------------------------------------------------------------
643+ -------------------------------------------------------------------&zwsp; -------------------------------------------------------------------&zwsp; ------
644644 Sort (cost=717.34..717.59 rows=101 width=488) (actual time=7.761..7.774 rows=100 loops=1)
645645 Sort Key: t1.fivethous
646646 Sort Method: quicksort Memory: 77kB
@@ -673,7 +673,7 @@ WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2 ORDER BY t1.fivethous;
673673EXPLAIN ANALYZE SELECT * FROM tenk1 WHERE ten < 7;
674674
675675 QUERY PLAN
676- ---------------------------------------------------------------------------------------------------------
676+ -------------------------------------------------------------------&zwsp; --------------------------------------
677677 Seq Scan on tenk1 (cost=0.00..483.00 rows=7000 width=244) (actual time=0.016..5.107 rows=7000 loops=1)
678678 Filter: (ten < 7)
679679 Rows Removed by Filter: 3000
@@ -696,7 +696,7 @@ EXPLAIN ANALYZE SELECT * FROM tenk1 WHERE ten < 7;
696696EXPLAIN ANALYZE SELECT * FROM polygon_tbl WHERE f1 @> polygon '(0.5,2.0)';
697697
698698 QUERY PLAN
699- ------------------------------------------------------------------------------------------------------
699+ -------------------------------------------------------------------&zwsp; -----------------------------------
700700 Seq Scan on polygon_tbl (cost=0.00..1.05 rows=1 width=32) (actual time=0.044..0.044 rows=0 loops=1)
701701 Filter: (f1 @> '((0.5,2))'::polygon)
702702 Rows Removed by Filter: 4
@@ -715,7 +715,7 @@ SET enable_seqscan TO off;
715715EXPLAIN ANALYZE SELECT * FROM polygon_tbl WHERE f1 @> polygon '(0.5,2.0)';
716716
717717 QUERY PLAN
718- --------------------------------------------------------------------------------------------------------------------------
718+ -------------------------------------------------------------------&zwsp; -------------------------------------------------------
719719 Index Scan using gpolygonind on polygon_tbl (cost=0.13..8.15 rows=1 width=32) (actual time=0.062..0.062 rows=0 loops=1)
720720 Index Cond: (f1 @> '((0.5,2))'::polygon)
721721 Rows Removed by Index Recheck: 1
@@ -738,7 +738,7 @@ EXPLAIN ANALYZE SELECT * FROM polygon_tbl WHERE f1 @> polygon '(0.5,2.0)';
738738EXPLAIN (ANALYZE, BUFFERS) SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000;
739739
740740 QUERY PLAN
741- ---------------------------------------------------------------------------------------------------------------------------------
741+ -------------------------------------------------------------------&zwsp; --------------------------------------------------------------
742742 Bitmap Heap Scan on tenk1 (cost=25.08..60.21 rows=10 width=244) (actual time=0.323..0.342 rows=10 loops=1)
743743 Recheck Cond: ((unique1 < 100) AND (unique2 > 9000))
744744 Buffers: shared hit=15
@@ -772,7 +772,7 @@ BEGIN;
772772EXPLAIN ANALYZE UPDATE tenk1 SET hundred = hundred + 1 WHERE unique1 < 100;
773773
774774 QUERY PLAN
775- --------------------------------------------------------------------------------------------------------------------------------
775+ -------------------------------------------------------------------&zwsp; -------------------------------------------------------------
776776 Update on tenk1 (cost=5.07..229.46 rows=101 width=250) (actual time=14.628..14.628 rows=0 loops=1)
777777 -> Bitmap Heap Scan on tenk1 (cost=5.07..229.46 rows=101 width=250) (actual time=0.101..0.439 rows=100 loops=1)
778778 Recheck Cond: (unique1 < 100)
@@ -808,7 +808,7 @@ ROLLBACK;
808808<screen>
809809EXPLAIN UPDATE parent SET f2 = f2 + 1 WHERE f1 = 101;
810810 QUERY PLAN
811- -----------------------------------------------------------------------------------
811+ -------------------------------------------------------------------&zwsp; ----------------
812812 Update on parent (cost=0.00..24.53 rows=4 width=14)
813813 Update on parent
814814 Update on child1
@@ -896,7 +896,7 @@ EXPLAIN UPDATE parent SET f2 = f2 + 1 WHERE f1 = 101;
896896EXPLAIN ANALYZE SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000 LIMIT 2;
897897
898898 QUERY PLAN
899- -------------------------------------------------------------------------------------------------------------------------------
899+ -------------------------------------------------------------------&zwsp; ------------------------------------------------------------
900900 Limit (cost=0.29..14.71 rows=2 width=244) (actual time=0.177..0.249 rows=2 loops=1)
901901 -> Index Scan using tenk1_unique2 on tenk1 (cost=0.29..72.42 rows=10 width=244) (actual time=0.174..0.244 rows=2 loops=1)
902902 Index Cond: (unique2 > 9000)
@@ -1311,7 +1311,7 @@ ANALYZE zipcodes;
13111311SELECT stxkeys AS k, stxdndistinct AS nd
13121312 FROM pg_statistic_ext join pg_statistic_ext_data on (oid = stxoid)
13131313 WHERE stxname = 'stts2';
1314- -[ RECORD 1 ]--------------------------------------------------------
1314+ -[ RECORD 1 ]------------------------------------------------------&zwsp; --
13151315k | 1 2 5
13161316nd | {"1, 2": 33178, "1, 5": 33178, "2, 5": 27435, "1, 2, 5": 33178}
13171317(1 row)
0 commit comments