dde08c696b
are savepoints (within transactions), point-in-time recovery and tablespaces. Check out the release notes and the shiny new PostgreSQL.org website at: http://www.PostgreSQL.org/docs/8.0/static/release.html#RELEASE-8-0 The port uses the new postgresql ports' layout and is split into a server and a client part. The following knobs can be used by ports depending on PostgreSQL: # USE_PGSQL - Add PostgreSQL client dependency. # If no version is given (by the maintainer via the port or # by the user via defined variable), try to find the # currently installed version. Fall back to default if # necessary (PostgreSQL-7.4 = 74). # DEFAULT_PGSQL_VER # - PostgreSQL default version. Can be overridden within a port. # Default: 74. # WANT_PGSQL_VER # - Maintainer can set an arbitrary version of PostgreSQL by # using it. # BROKEN_WITH_PGSQL # - This variable can be defined if the ports doesn't support # one or more versions of PostgreSQL. PR: 75344 Approved by: portmgr@ (kris), ade & sean (mentors)
49 lines
1.7 KiB
Text
49 lines
1.7 KiB
Text
For procedural languages and postgresql functions, please note that
|
|
you might have to update them when updating the server.
|
|
|
|
If you have many tables and many clients running, consider raising
|
|
kern.maxfiles using sysctl(8), or reconfigure your kernel
|
|
appropriately.
|
|
|
|
You should vacuum and backup your database regularly. There is a
|
|
periodic script, ${LOCALBASE}/etc/periodic/daily/502.pgsql, that you
|
|
may find useful. Per default, it perfoms vacuum on all databases
|
|
nightly. See the script for instructions.
|
|
|
|
To allow many simultaneous connections to your PostgreSQL server, you
|
|
should raise the SystemV shared memory limits in your kernel. Here are
|
|
example values for allowing up to 180 clients (configurations in
|
|
postgresql.conf also needed, of course):
|
|
options SYSVSHM
|
|
options SYSVSEM
|
|
options SYSVMSG
|
|
options SHMMAXPGS=65536
|
|
options SEMMNI=40
|
|
options SEMMNS=240
|
|
options SEMUME=40
|
|
options SEMMNU=120
|
|
|
|
If you plan to access your PostgreSQL server using ODBC, please
|
|
consider running the SQL script /usr/local/share/postgresql/odbc.sql
|
|
to get the functions required for ODBC compliance.
|
|
|
|
======================================================================
|
|
|
|
To initialize the database, run
|
|
|
|
/usr/local/etc/rc.d/postgresql.sh initdb
|
|
|
|
You can then start PostgreSQL by running:
|
|
|
|
/usr/local/etc/rc.d/postgresql.sh start
|
|
|
|
For postmaster settings, see ~pgsql/data/postgresql.conf
|
|
|
|
NB. FreeBSD's PostgreSQL port now by default logs to syslog
|
|
See ~pgsql/data/postgresql.conf for more info
|
|
|
|
======================================================================
|
|
|
|
To run PostgreSQL at startup, add
|
|
'postgresql_enable="YES"' to /etc/rc.conf
|
|
|