Skip to content

Commit 2897008

Browse files
author
Johannes Gijsbers
committed
Add installation documentation for tsearch2.
1 parent 1deaed2 commit 2897008

File tree

1 file changed

+44
-3
lines changed

1 file changed

+44
-3
lines changed

doc/postgresql.txt

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
PostgreSQL/psycopg Backend
33
==========================
44

5-
This is notes about PostreSQL backend based on the psycopg adapter for
6-
roundup issue tracker.
7-
5+
This are notes about PostqreSQL backend based on the psycopg adapter for
6+
Roundup issue tracker.
87

98
Prerequisites
109
=============
@@ -28,6 +27,48 @@ you wish to test against a different database.
2827

2928
The test database will be called "rounduptest".
3029

30+
Using the tsearch2 indexer
31+
==========================
32+
33+
You have the option of using a different indexer for full-text searches. It is
34+
based on tsearch2_, a module for PostgreSQL 7.3 and above. It is faster and
35+
more scalable than the standard indexer. The tsearch2 indexer is a good choice
36+
if you have over a 1000 issues in one tracker.
37+
38+
.. _tsearch2: http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
39+
40+
Installation
41+
------------
42+
43+
tsearch2 is available from the contrib subtree of the PostgreSQL source tree
44+
starting with PostgreSQL 7.4. This means installing tsearch2 on Debian is
45+
simple::
46+
47+
apt-get install postgresql-contrib
48+
49+
FreeBSD is equally simple::
50+
51+
pkg_add -r postgresql-contrib
52+
53+
RPM packages for Fedora Core are available from all PostgreSQL ftp mirrors_.
54+
Packages for Suse, Mandrake and others are available from those distributors.
55+
56+
.. _mirrors: http://www.postgresql.org/download/mirrors-ftp
57+
58+
If you're compiling from source, I'm assuming you already know how to build and
59+
install the main PostgreSQL source. Once you've done that, running the
60+
following commands in the 'contrib' directory will build and install tsearch2::
61+
62+
make all
63+
make install
64+
65+
Configuring Roundup
66+
-------------------
67+
68+
Roundup implements tsearch2 as a distinct backend from the postgresql backend.
69+
Switching to tsearch2 is the same process as `migrating to any other backend`__.
70+
71+
__ admin_guide.html#migrating-backends
3172

3273
Credit
3374
======

0 commit comments

Comments
 (0)