turn off costs in columnar_indexes explain query

pull/5209/head
Sait Talha Nisanci 2021-08-24 08:52:36 +03:00
parent e63302d012
commit e0faf34417
2 changed files with 10 additions and 10 deletions

View File

@ -20,11 +20,11 @@ REINDEX INDEX CONCURRENTLY t_idx;
Indexes: Indexes:
"t_idx" btree (a, b) "t_idx" btree (a, b)
explain insert into t values (1, 2); explain (COSTS OFF) insert into t values (1, 2);
QUERY PLAN QUERY PLAN
--------------------------------------------------------------------- ---------------------------------------------------------------------
Insert on t (cost=0.00..0.01 rows=1 width=8) Insert on t
-> Result (cost=0.00..0.01 rows=1 width=8) -> Result
(2 rows) (2 rows)
insert into t values (1, 2); insert into t values (1, 2);
@ -34,11 +34,11 @@ SELECT * FROM t;
1 | 2 1 | 2
(1 row) (1 row)
explain insert into t values (1, 2); explain (COSTS OFF) insert into t values (1, 2);
QUERY PLAN QUERY PLAN
--------------------------------------------------------------------- ---------------------------------------------------------------------
Insert on t (cost=0.00..0.01 rows=1 width=8) Insert on t
-> Result (cost=0.00..0.01 rows=1 width=8) -> Result
(2 rows) (2 rows)
insert into t values (3, 4); insert into t values (3, 4);

View File

@ -14,11 +14,11 @@ create table t(a int, b int) using columnar;
create index CONCURRENTLY t_idx on t(a, b); create index CONCURRENTLY t_idx on t(a, b);
REINDEX INDEX CONCURRENTLY t_idx; REINDEX INDEX CONCURRENTLY t_idx;
\d t \d t
explain insert into t values (1, 2); explain (COSTS OFF) insert into t values (1, 2);
insert into t values (1, 2); insert into t values (1, 2);
SELECT * FROM t; SELECT * FROM t;
explain insert into t values (1, 2); explain (COSTS OFF) insert into t values (1, 2);
insert into t values (3, 4); insert into t values (3, 4);
SELECT * FROM t; SELECT * FROM t;