~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to src/test/regress/expected/tsearch.out

  • 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:
624
624
 <body>
625
625
 <b>Sea</b> view wow <u><b>foo</b> bar</u> <i>qq</i>
626
626
 <a href="http://www.google.com/foo.bar.html" target="_blank">YES &nbsp;</a>
627
 
  ff-bg
 
627
 ff-bg
628
628
 <script>
629
629
        document.write(15);
630
630
 </script>
1027
1027
     1
1028
1028
(1 row)
1029
1029
 
 
1030
-- test finding items in GIN's pending list
 
1031
create temp table pendtest (ts tsvector);
 
1032
create index pendtest_idx on pendtest using gin(ts);
 
1033
insert into pendtest values (to_tsvector('Lore ipsam'));
 
1034
insert into pendtest values (to_tsvector('Lore ipsum'));
 
1035
select * from pendtest where 'ipsu:*'::tsquery @@ ts;
 
1036
         ts         
 
1037
--------------------
 
1038
 'ipsum':2 'lore':1
 
1039
(1 row)
 
1040
 
 
1041
select * from pendtest where 'ipsa:*'::tsquery @@ ts;
 
1042
         ts         
 
1043
--------------------
 
1044
 'ipsam':2 'lore':1
 
1045
(1 row)
 
1046
 
 
1047
select * from pendtest where 'ips:*'::tsquery @@ ts;
 
1048
         ts         
 
1049
--------------------
 
1050
 'ipsam':2 'lore':1
 
1051
 'ipsum':2 'lore':1
 
1052
(2 rows)
 
1053
 
 
1054
select * from pendtest where 'ipt:*'::tsquery @@ ts;
 
1055
 ts 
 
1056
----
 
1057
(0 rows)
 
1058
 
 
1059
select * from pendtest where 'ipi:*'::tsquery @@ ts;
 
1060
 ts 
 
1061
----
 
1062
(0 rows)
 
1063