echo " create table t(n integer primary key); insert into t select * from generate_series(1,10000); analyze t; --> gather table statistics explain (analyze, verbose, format yaml) select count(*) from t where n between 10 and 20; " | psql -qtAX