22PostgreSQL/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
98Prerequisites
109=============
@@ -28,6 +27,48 @@ you wish to test against a different database.
2827
2928The 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
3273Credit
3374======
0 commit comments