Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a7ace3b6
Commit
a7ace3b6
authored
Apr 07, 2016
by
Teodor Sigaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make testing of phraseto_tsquery independ from value of
default_text_search_config variable. Per skink buldfarm member
parent
fcff8a57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
src/test/regress/expected/tsearch.out
src/test/regress/expected/tsearch.out
+5
-5
src/test/regress/sql/tsearch.sql
src/test/regress/sql/tsearch.sql
+5
-5
No files found.
src/test/regress/expected/tsearch.out
View file @
a7ace3b6
...
...
@@ -759,25 +759,25 @@ SELECT to_tsquery('english', '2 <-> (s <-> (1 <-> a))');
'2'
<->
'1'
(1 row)
SELECT to_tsquery('foo
<->
(a
<->
(the
<->
bar))');
SELECT to_tsquery('
english', '
foo
<->
(a
<->
(the
<->
bar))');
to_tsquery
-----------------
'foo'
<->
'bar'
(1 row)
SELECT to_tsquery('((foo
<->
a)
<->
the)
<->
bar');
SELECT to_tsquery('
english', '
((foo
<->
a)
<->
the)
<->
bar');
to_tsquery
-----------------
'foo'
<3>
'bar'
(1 row)
SELECT to_tsquery('foo
<->
a
<->
the
<->
bar');
SELECT to_tsquery('
english', '
foo
<->
a
<->
the
<->
bar');
to_tsquery
-----------------
'foo'
<3>
'bar'
(1 row)
SELECT phraseto_tsquery('PostgreSQL can be extended by the user in many ways');
SELECT phraseto_tsquery('
english', '
PostgreSQL can be extended by the user in many ways');
phraseto_tsquery
-----------------------------------------------------------------------
( ( ( 'postgresql'
<3>
'extend' )
<3>
'user' )
<2>
'mani' )
<->
'way'
...
...
@@ -1462,7 +1462,7 @@ create temp table phrase_index_test(fts tsvector);
insert
into
phrase_index_test
values
('
A
fat
cat
has
just
eaten
a
rat
.');
create
index
phrase_index_test_idx
on
phrase_index_test
using
gin
(
fts
);
set
enable_seqscan =
off;
select
*
from
phrase_index_test
where
fts
@@
phraseto_tsquery
('
fat
cat
');
select
*
from
phrase_index_test
where
fts
@@
phraseto_tsquery
('
english
',
'
fat
cat
');
fts
-------------------------------------------------
'
A
'
'
a
'
'
cat
'
'
eaten
'
'
fat
'
'
has
'
'
just
'
'
rat
.'
...
...
src/test/regress/sql/tsearch.sql
View file @
a7ace3b6
...
...
@@ -169,10 +169,10 @@ SELECT to_tsquery('english', '2 <-> (s <-> (a <-> 1))');
SELECT
to_tsquery
(
'english'
,
'2 <-> ((1 <-> a) <-> s)'
);
SELECT
to_tsquery
(
'english'
,
'2 <-> (s <-> (1 <-> a))'
);
SELECT
to_tsquery
(
'foo <-> (a <-> (the <-> bar))'
);
SELECT
to_tsquery
(
'((foo <-> a) <-> the) <-> bar'
);
SELECT
to_tsquery
(
'foo <-> a <-> the <-> bar'
);
SELECT
phraseto_tsquery
(
'PostgreSQL can be extended by the user in many ways'
);
SELECT
to_tsquery
(
'
english'
,
'
foo <-> (a <-> (the <-> bar))'
);
SELECT
to_tsquery
(
'
english'
,
'
((foo <-> a) <-> the) <-> bar'
);
SELECT
to_tsquery
(
'
english'
,
'
foo <-> a <-> the <-> bar'
);
SELECT
phraseto_tsquery
(
'
english'
,
'
PostgreSQL can be extended by the user in many ways'
);
SELECT
ts_rank_cd
(
to_tsvector
(
'english'
,
'
...
...
@@ -485,5 +485,5 @@ create temp table phrase_index_test(fts tsvector);
insert
into
phrase_index_test
values
(
'A fat cat has just eaten a rat.'
);
create
index
phrase_index_test_idx
on
phrase_index_test
using
gin
(
fts
);
set
enable_seqscan
=
off
;
select
*
from
phrase_index_test
where
fts
@@
phraseto_tsquery
(
'fat cat'
);
select
*
from
phrase_index_test
where
fts
@@
phraseto_tsquery
(
'
english'
,
'
fat cat'
);
set
enable_seqscan
=
on
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment