GNU/Linux screen bash 1086 views

\timing on

drop table if exists demo; create table demo( a bigint, b bigint) with (autovacuum_enabled = false); copy demo(a,b) from program ‘for i in {1..10000000} ; do echo -e “$i\t$i” ; done’; explain analyze select a from demo where a =1; alter table demo add primary key (a); explain analyze select a from demo where a=1; vacuum verbose demo; explain analyze select a from demo where a=1;

\q