]> git.somenet.org - pub/jan/adbs.git/blob - ex1/ex15b.sh
GITOLITE.txt
[pub/jan/adbs.git] / ex1 / ex15b.sh
1 #!/bin/sh
2
3 EXPLAIN="EXPLAIN(ANALYZE,COSTS)"
4
5 echo "ex1.5.b unoptimized"
6 echo "${EXPLAIN} SELECT score FROM comments WHERE lower(substring(text for 3)) = 'yes';" | psql
7
8 echo "ex1.5.b optimized"
9 echo "${EXPLAIN} SELECT score FROM comments WHERE text ILIKE 'yes\%';" | psql