opt/postgresql
Simone Rota 91b7721a0d [notify] postgresql: updated to 8.2.0
Note that you have to dump/restore your databases if upgrading
from a previous version. See the README file of the port for
an example of how to do so.

Also be sure to have a look at the release notes for possible
incompatibilities:

http://www.postgresql.org/docs/8.2/static/release-8-2.html
2006-12-06 04:07:57 +01:00
..
.footprint [notify] postgresql: updated to 8.2.0 2006-12-06 04:07:57 +01:00
.md5sum [notify] postgresql: updated to 8.2.0 2006-12-06 04:07:57 +01:00
Pkgfile [notify] postgresql: updated to 8.2.0 2006-12-06 04:07:57 +01:00
postgresql create branch for 2.2 2006-02-23 15:26:10 +00:00
README create branch for 2.2 2006-02-23 15:26:10 +00:00

README POSTGRESQL
=================

UPGRADING FROM A PREVIOUS VERSION
---------------------------------
If upgrading from a non-compatible version (ie 8.0.x >> 8.1.x)
be sure to dump the databases before upgrading and restore them
later.

Example: (for your convenience, there could be better ways to
          achieve this)

# pg_dumpall -U postgres > pg.dump
# /etc/rc.d/postgresql stop

# mv /var/pgsql/data /var/pgsql/data-backup
# mkdir /var/pgsql/data
# chown postgres /var/pgsql/data

# su - postgres
# initdb -D /var/pgsql/data
# exit

# /etc/rc.d/postgresql start
# psql -U postgres -f pg.dump postgres

Do not forget to update / copy old config files to /var/pgsql/data 


NEW INSTALL
-----------

To complete the installation and create a test database you need to do
some additional steps:

# useradd postgres
# passwd -l postgres

# mkdir -p /var/pgsql/data
# touch /var/log/postgresql
# chown postgres /var/pgsql/data /var/log/postgresql

# su - postgres
# initdb -D /var/pgsql/data
# exit

# /etc/rc.d/postgresql start
# su - postgres
# createdb test
# psql test

edit /etc/cron/weekly as root and add a line "/usr/sbin/rotatelog postgresql"

The complete installation instructions are located here:

http://www.postgresql.org/docs/current/interactive/installation.html