File: falcon.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 (16 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
drop table if exists tst;
create table tst ( pref prefix_range );

insert into tst
     select trim(to_char(i, '00000'))
       from generate_series(1, 99999) as i;

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

create index tst_ix on tst using gist ( pref );

set enable_seqscan = off;

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

reset enable_seqscan;