File: explain.sql

package info (click to toggle)
prefix 1.2.10-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 688 kB
  • sloc: ansic: 1,300; sql: 756; makefile: 20; sh: 2
file content (8 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
explain (costs off) select * from ranges where prefix @> '0146640123';
explain (costs off) select * from ranges where prefix @> '0146640123' order by length(prefix) desc limit 1;
explain (costs off) select * from ranges where prefix @> '0100091234';
explain (costs off) select * from ranges where prefix @> '0100091234' order by length(prefix) desc limit 1;

explain (costs off) select * from numbers n join ranges r on r.prefix @> n.number;

explain (costs off) select count(*) from tst where pref <@ '55';