These steps illustrate how to install the PostgreSQL software on shared storage. You can also build and install the PostgreSQL binaries in the default directory /usr/local/pgsql.
phys-schost-1# mkdir /glohal/mnt3/postgres
phys-schost-1# chown -R postgres:postgres /glohal/mnt3/postgres
phys-schost-1# su - postgres
phys-schost-1$ mkdir build phys-schost-1$ cd build
phys-schost-1$ PATH=$PATH:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin phys-schost-1$ export PATH
phys-schost-1$ gzcat /tmp/postgresql-8.1.0.tag.gz | tar xvf - phys-schost-1$ cd /global/mnt3/postgres/build/postgresql-8.1.0 phys-schost-1$ ./configure --prefix=/global/mnt3/postgres/postgresql-8.1.0
phys-schost-1$ gmake
If you use gcc to build the postgres binaries, build them in a failover file system.
phys-schost-1$ gmake check
phys-schost-1# gmake install
phys-schost-1$ gmake clean