Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf68fe67

Browse files
committed
In case Florian and I don't finish his changes to this contrib before
beta, at least get this stuff in.ftipatch.txt - Updates to docs and scripts. Run in the fulltextindexdirWARNING - Add to fulltextindex diruninstall.sql - Add to fulltextindex dir
1 parent1f8a63e commitf68fe67

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed

‎contrib/fulltextindex/README.fti

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ string), btree indices can be used by PostgreSQL.
5050
Now, how do we create the trigger that maintains the fti-table? First: the
5151
fti-table should have the following schema:
5252

53-
create cds-fti ( string varchar(N), id oid );
53+
create cds-fti ( string varchar(N), id oid ) without oids;
5454

5555
Don't change the *names* of the columns, the varchar() can in fact also
5656
be of text-type. If you do use varchar, make sure the largest possible

‎contrib/fulltextindex/WARNING

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
WARNING
2+
-------
3+
4+
This implementation of full text indexing is very slow and inefficient. It is
5+
STRONGLY recommended that you switch to using contrib/tsearch which offers these
6+
features:
7+
8+
Advantages
9+
----------
10+
* Actively developed and improved
11+
* Tight integration with OpenFTS (openfts.sourceforge.net)
12+
* Orders of magnitude faster (eg. 300 times faster for two keyword search)
13+
* No extra tables or multi-way joins required
14+
* Select syntax allows easy 'and'ing, 'or'ing and 'not'ing of keywords
15+
* Built-in stemmer with customisable dictionaries (ie. searching for 'jellies' will find 'jelly')
16+
* Stop words automatically ignored
17+
* Supports non-C locales
18+
19+
Disadvantages
20+
-------------
21+
* Only indexes full words - substring searches on words won't work.
22+
eg. Searching for 'burg' won't find 'burger'
23+
24+
Due to the deficiencies in this module, it is quite likely that it will be removed from the standard PostgreSQL distribution in the future.
25+

‎contrib/fulltextindex/fti.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* '/usr/local/pgsql/lib/contrib/fti.so' language 'C';
2626
*
2727
*-- Create the FTI table
28-
*create table product_fti (string varchar(255), id oid);
28+
*create table product_fti (string varchar(255), id oid) without oids;
2929
*
3030
*-- Create an index to assist string matches
3131
*create index product_fti_string_idx on product_fti (string);

‎contrib/fulltextindex/fti.sql.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
create functionfti()returns triggeras
2-
'MODULE_PATHNAME'
3-
language 'C';
1+
CREATE OR REPLACE FUNCTIONfti()RETURNS triggerAS
2+
'MODULE_PATHNAME', 'fti'
3+
LANGUAGE 'C' VOLATILE CALLED ON NULL INPUT;

‎contrib/fulltextindex/uninstall.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROPFUNCTION fti() CASCADE;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp