Update databases/postgresql92-server to version 9.2.19
[dports.git] / databases / postgresql92-server / files / pkg-message-server.in
1 For procedural languages and postgresql functions, please note that
2 you might have to update them when updating the server.
3
4 If you have many tables and many clients running, consider raising
5 kern.maxfiles using sysctl(8), or reconfigure your kernel
6 appropriately.
7
8 The port is set up to use autovacuum for new databases, but you might
9 also want to vacuum and perhaps backup your database regularly. There
10 is a periodic script, %%PREFIX%%/etc/periodic/daily/502.pgsql, that
11 you may find useful. You can use it to backup and perform vacuum on all
12 databases nightly. Per default, it performs `vacuum analyze'. See the
13 script for instructions. For autovacuum settings, please review
14 ~pgsql/data/postgresql.conf.
15
16 To allow many simultaneous connections to your PostgreSQL server, you
17 should raise the SystemV shared memory limits in your kernel. Here are
18 example values for allowing up to 180 clients (configurations in
19 postgresql.conf also needed, of course):
20   options         SYSVSHM
21   options         SYSVSEM
22   options         SYSVMSG
23   options         SHMMAXPGS=65536
24   options         SEMMNI=40
25   options         SEMMNS=240
26   options         SEMUME=40
27   options         SEMMNU=120
28
29 If you plan to access your PostgreSQL server using ODBC, please
30 consider running the SQL script %%PREFIX%%/share/postgresql/odbc.sql
31 to get the functions required for ODBC compliance.
32
33 Please note that if you use the rc script,
34 %%PREFIX%%/etc/rc.d/postgresql, to initialize the database, unicode
35 (UTF-8) will be used to store character data by default.  Set
36 postgresql_initdb_flags or use login.conf settings described below to
37 alter this behaviour. See the start rc script for more info.
38
39 To set limits, environment stuff like locale and collation and other
40 things, you can set up a class in /etc/login.conf before initializing
41 the database. Add something similar to this to /etc/login.conf:
42 ---
43 postgres:\
44         :lang=en_US.UTF-8:\
45         :setenv=LC_COLLATE=C:\
46         :tc=default:
47 ---
48 and run `cap_mkdb /etc/login.conf'.
49 Then add 'postgresql_class="postgres"' to /etc/rc.conf.
50
51 ======================================================================
52
53 To initialize the database, run
54
55   %%PREFIX%%/etc/rc.d/postgresql initdb
56
57 You can then start PostgreSQL by running:
58
59   %%PREFIX%%/etc/rc.d/postgresql start
60
61 For postmaster settings, see ~pgsql/data/postgresql.conf
62
63 NB. FreeBSD's PostgreSQL port logs to syslog by default
64     See ~pgsql/data/postgresql.conf for more info
65
66 ======================================================================
67
68 To run PostgreSQL at startup, add
69 'postgresql_enable="YES"' to /etc/rc.conf
70