contrib/postgresql
2011-02-02 21:27:09 +01:00
..
.footprint postgresql: 8.4.4 -> 9.0.0 2010-09-20 19:53:25 +02:00
.md5sum postgresql: 9.0.2 -> 9.0.3 2011-02-02 21:27:09 +01:00
Pkgfile postgresql: 9.0.2 -> 9.0.3 2011-02-02 21:27:09 +01:00
postgresql postgresql: taken from opt 2009-01-12 23:53:18 +01:00
README postgresql: 8.4.4 -> 9.0.0 2010-09-20 19:53:25 +02:00

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

UPGRADING FROM A PREVIOUS VERSION
---------------------------------
If upgrading from a non-compatible version (ie 8.0.x >> 8.1.x or
8.x.y >> 9.a.b) 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 -m -d /home/postgres 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/syslog 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