@@ -229,7 +229,7 @@ EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 7000;
229
229
EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100;
230
230
231
231
QUERY PLAN
232
- ------------------------------------------------------------------------------
232
+ -------------------------------------------------------------------&zwsp; -----------
233
233
Bitmap Heap Scan on tenk1 (cost=5.07..229.20 rows=101 width=244)
234
234
Recheck Cond: (unique1 < 100)
235
235
-> 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;
256
256
EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND stringu1 = 'xxx';
257
257
258
258
QUERY PLAN
259
- ------------------------------------------------------------------------------
259
+ -------------------------------------------------------------------&zwsp; -----------
260
260
Bitmap Heap Scan on tenk1 (cost=5.04..229.43 rows=1 width=244)
261
261
Recheck Cond: (unique1 < 100)
262
262
Filter: (stringu1 = 'xxx'::name)
@@ -280,7 +280,7 @@ EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND stringu1 = 'xxx';
280
280
EXPLAIN SELECT * FROM tenk1 WHERE unique1 = 42;
281
281
282
282
QUERY PLAN
283
- -----------------------------------------------------------------------------
283
+ -------------------------------------------------------------------&zwsp; ----------
284
284
Index Scan using tenk1_unique1 on tenk1 (cost=0.29..8.30 rows=1 width=244)
285
285
Index Cond: (unique1 = 42)
286
286
</screen>
@@ -318,7 +318,7 @@ EXPLAIN SELECT * FROM tenk1 ORDER BY unique1;
318
318
<screen>
319
319
EXPLAIN SELECT * FROM tenk1 ORDER BY four, ten LIMIT 100;
320
320
QUERY PLAN
321
- ------------------------------------------------------------------------------------------------------
321
+ -------------------------------------------------------------------&zwsp; -----------------------------------
322
322
Limit (cost=521.06..538.05 rows=100 width=244)
323
323
-> Incremental Sort (cost=521.06..2220.95 rows=10000 width=244)
324
324
Sort Key: four, ten
@@ -343,7 +343,7 @@ EXPLAIN SELECT * FROM tenk1 ORDER BY four, ten LIMIT 100;
343
343
EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000;
344
344
345
345
QUERY PLAN
346
- -------------------------------------------------------------------------------------
346
+ -------------------------------------------------------------------&zwsp; ------------------
347
347
Bitmap Heap Scan on tenk1 (cost=25.08..60.21 rows=10 width=244)
348
348
Recheck Cond: ((unique1 < 100) AND (unique2 > 9000))
349
349
-> BitmapAnd (cost=25.08..25.08 rows=10 width=0)
@@ -366,7 +366,7 @@ EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000;
366
366
EXPLAIN SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000 LIMIT 2;
367
367
368
368
QUERY PLAN
369
- -------------------------------------------------------------------------------------
369
+ -------------------------------------------------------------------&zwsp; ------------------
370
370
Limit (cost=0.29..14.48 rows=2 width=244)
371
371
-> Index Scan using tenk1_unique2 on tenk1 (cost=0.29..71.27 rows=10 width=244)
372
372
Index Cond: (unique2 > 9000)
@@ -396,7 +396,7 @@ FROM tenk1 t1, tenk2 t2
396
396
WHERE t1.unique1 < 10 AND t1.unique2 = t2.unique2;
397
397
398
398
QUERY PLAN
399
- --------------------------------------------------------------------------------------
399
+ -------------------------------------------------------------------&zwsp; -------------------
400
400
Nested Loop (cost=4.65..118.62 rows=10 width=488)
401
401
-> Bitmap Heap Scan on tenk1 t1 (cost=4.36..39.47 rows=10 width=244)
402
402
Recheck Cond: (unique1 < 10)
@@ -445,7 +445,7 @@ FROM tenk1 t1, tenk2 t2
445
445
WHERE t1.unique1 < 10 AND t2.unique2 < 10 AND t1.hundred < t2.hundred;
446
446
447
447
QUERY PLAN
448
- ---------------------------------------------------------------------------------------------
448
+ -------------------------------------------------------------------&zwsp; --------------------------
449
449
Nested Loop (cost=4.65..49.46 rows=33 width=488)
450
450
Join Filter: (t1.hundred < t2.hundred)
451
451
-> Bitmap Heap Scan on tenk1 t1 (cost=4.36..39.47 rows=10 width=244)
@@ -493,7 +493,7 @@ FROM tenk1 t1, tenk2 t2
493
493
WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2;
494
494
495
495
QUERY PLAN
496
- ------------------------------------------------------------------------------------------
496
+ -------------------------------------------------------------------&zwsp; -----------------------
497
497
Hash Join (cost=230.47..713.98 rows=101 width=488)
498
498
Hash Cond: (t2.unique2 = t1.unique2)
499
499
-> Seq Scan on tenk2 t2 (cost=0.00..445.00 rows=10000 width=244)
@@ -524,7 +524,7 @@ FROM tenk1 t1, onek t2
524
524
WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2;
525
525
526
526
QUERY PLAN
527
- ------------------------------------------------------------------------------------------
527
+ -------------------------------------------------------------------&zwsp; -----------------------
528
528
Merge Join (cost=198.11..268.19 rows=10 width=488)
529
529
Merge Cond: (t1.unique2 = t2.unique2)
530
530
-> 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
562
562
WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2;
563
563
564
564
QUERY PLAN
565
- ------------------------------------------------------------------------------------------
565
+ -------------------------------------------------------------------&zwsp; -----------------------
566
566
Merge Join (cost=0.56..292.65 rows=10 width=488)
567
567
Merge Cond: (t1.unique2 = t2.unique2)
568
568
-> 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
596
596
WHERE t1.unique1 < 10 AND t1.unique2 = t2.unique2;
597
597
598
598
QUERY PLAN
599
- ---------------------------------------------------------------------------------------------------------------------------------
599
+ -------------------------------------------------------------------&zwsp; --------------------------------------------------------------
600
600
Nested Loop (cost=4.65..118.62 rows=10 width=488) (actual time=0.128..0.377 rows=10 loops=1)
601
601
-> 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)
602
602
Recheck Cond: (unique1 < 10)
@@ -640,7 +640,7 @@ FROM tenk1 t1, tenk2 t2
640
640
WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2 ORDER BY t1.fivethous;
641
641
642
642
QUERY PLAN
643
- --------------------------------------------------------------------------------------------------------------------------------------------
643
+ -------------------------------------------------------------------&zwsp; -------------------------------------------------------------------&zwsp; ------
644
644
Sort (cost=717.34..717.59 rows=101 width=488) (actual time=7.761..7.774 rows=100 loops=1)
645
645
Sort Key: t1.fivethous
646
646
Sort Method: quicksort Memory: 77kB
@@ -673,7 +673,7 @@ WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2 ORDER BY t1.fivethous;
673
673
EXPLAIN ANALYZE SELECT * FROM tenk1 WHERE ten < 7;
674
674
675
675
QUERY PLAN
676
- ---------------------------------------------------------------------------------------------------------
676
+ -------------------------------------------------------------------&zwsp; --------------------------------------
677
677
Seq Scan on tenk1 (cost=0.00..483.00 rows=7000 width=244) (actual time=0.016..5.107 rows=7000 loops=1)
678
678
Filter: (ten < 7)
679
679
Rows Removed by Filter: 3000
@@ -696,7 +696,7 @@ EXPLAIN ANALYZE SELECT * FROM tenk1 WHERE ten < 7;
696
696
EXPLAIN ANALYZE SELECT * FROM polygon_tbl WHERE f1 @> polygon '(0.5,2.0)';
697
697
698
698
QUERY PLAN
699
- ------------------------------------------------------------------------------------------------------
699
+ -------------------------------------------------------------------&zwsp; -----------------------------------
700
700
Seq Scan on polygon_tbl (cost=0.00..1.05 rows=1 width=32) (actual time=0.044..0.044 rows=0 loops=1)
701
701
Filter: (f1 @> '((0.5,2))'::polygon)
702
702
Rows Removed by Filter: 4
@@ -715,7 +715,7 @@ SET enable_seqscan TO off;
715
715
EXPLAIN ANALYZE SELECT * FROM polygon_tbl WHERE f1 @> polygon '(0.5,2.0)';
716
716
717
717
QUERY PLAN
718
- --------------------------------------------------------------------------------------------------------------------------
718
+ -------------------------------------------------------------------&zwsp; -------------------------------------------------------
719
719
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)
720
720
Index Cond: (f1 @> '((0.5,2))'::polygon)
721
721
Rows Removed by Index Recheck: 1
@@ -738,7 +738,7 @@ EXPLAIN ANALYZE SELECT * FROM polygon_tbl WHERE f1 @> polygon '(0.5,2.0)';
738
738
EXPLAIN (ANALYZE, BUFFERS) SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000;
739
739
740
740
QUERY PLAN
741
- ---------------------------------------------------------------------------------------------------------------------------------
741
+ -------------------------------------------------------------------&zwsp; --------------------------------------------------------------
742
742
Bitmap Heap Scan on tenk1 (cost=25.08..60.21 rows=10 width=244) (actual time=0.323..0.342 rows=10 loops=1)
743
743
Recheck Cond: ((unique1 < 100) AND (unique2 > 9000))
744
744
Buffers: shared hit=15
@@ -772,7 +772,7 @@ BEGIN;
772
772
EXPLAIN ANALYZE UPDATE tenk1 SET hundred = hundred + 1 WHERE unique1 < 100;
773
773
774
774
QUERY PLAN
775
- --------------------------------------------------------------------------------------------------------------------------------
775
+ -------------------------------------------------------------------&zwsp; -------------------------------------------------------------
776
776
Update on tenk1 (cost=5.07..229.46 rows=101 width=250) (actual time=14.628..14.628 rows=0 loops=1)
777
777
-> Bitmap Heap Scan on tenk1 (cost=5.07..229.46 rows=101 width=250) (actual time=0.101..0.439 rows=100 loops=1)
778
778
Recheck Cond: (unique1 < 100)
@@ -808,7 +808,7 @@ ROLLBACK;
808
808
<screen>
809
809
EXPLAIN UPDATE parent SET f2 = f2 + 1 WHERE f1 = 101;
810
810
QUERY PLAN
811
- -----------------------------------------------------------------------------------
811
+ -------------------------------------------------------------------&zwsp; ----------------
812
812
Update on parent (cost=0.00..24.53 rows=4 width=14)
813
813
Update on parent
814
814
Update on child1
@@ -896,7 +896,7 @@ EXPLAIN UPDATE parent SET f2 = f2 + 1 WHERE f1 = 101;
896
896
EXPLAIN ANALYZE SELECT * FROM tenk1 WHERE unique1 < 100 AND unique2 > 9000 LIMIT 2;
897
897
898
898
QUERY PLAN
899
- -------------------------------------------------------------------------------------------------------------------------------
899
+ -------------------------------------------------------------------&zwsp; ------------------------------------------------------------
900
900
Limit (cost=0.29..14.71 rows=2 width=244) (actual time=0.177..0.249 rows=2 loops=1)
901
901
-> 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)
902
902
Index Cond: (unique2 > 9000)
@@ -1311,7 +1311,7 @@ ANALYZE zipcodes;
1311
1311
SELECT stxkeys AS k, stxdndistinct AS nd
1312
1312
FROM pg_statistic_ext join pg_statistic_ext_data on (oid = stxoid)
1313
1313
WHERE stxname = 'stts2';
1314
- -[ RECORD 1 ]--------------------------------------------------------
1314
+ -[ RECORD 1 ]------------------------------------------------------&zwsp; --
1315
1315
k | 1 2 5
1316
1316
nd | {"1, 2": 33178, "1, 5": 33178, "2, 5": 27435, "1, 2, 5": 33178}
1317
1317
(1 row)
0 commit comments