~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to src/test/regress/sql/tsearch.sql

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
INSERT INTO test_tsvector (t) VALUES ('345 qwerty');
362
362
 
363
363
SELECT count(*) FROM test_tsvector WHERE a @@ to_tsquery('345&qwerty');
 
364
 
 
365
-- test finding items in GIN's pending list
 
366
create temp table pendtest (ts tsvector);
 
367
create index pendtest_idx on pendtest using gin(ts);
 
368
insert into pendtest values (to_tsvector('Lore ipsam'));
 
369
insert into pendtest values (to_tsvector('Lore ipsum'));
 
370
select * from pendtest where 'ipsu:*'::tsquery @@ ts;
 
371
select * from pendtest where 'ipsa:*'::tsquery @@ ts;
 
372
select * from pendtest where 'ips:*'::tsquery @@ ts;
 
373
select * from pendtest where 'ipt:*'::tsquery @@ ts;
 
374
select * from pendtest where 'ipi:*'::tsquery @@ ts;