1. Installing and Configuring HA for PostgreSQL
A. Files for Configuring Solaris Cluster HA for Solaris PostgreSQL Resources
B. Deployment Example: Installing PostgreSQL in the Global Zone
C. Deployment Example: Installing PostgreSQL in a Non-Global HA Container
Installing and Configuring PostgreSQL on Shared Storage in a Non-Global HA Container
Example: Preparing the Cluster for PostgreSQL
Example: Configuring Cluster Resources for PostgreSQL
Example: Configuring the HA Container
Example: Modifying the PostgreSQL Configuration File
Example: Enabling the PostgreSQL Software to Run in the Cluster
Example: Building and Installing the PostgreSQL Software in the Default Directory in an HA Container
D. Deployment Example: Installing PostgreSQL in a Non-Global Zone
E. Deployment Example: Installing PostgreSQL in the Global Zone Using WAL File Shipping
This example illustrates 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. See Installing the PostgreSQL Binaries in the Default Directory in an HA Container (Alternative Installation).
phys-schost-1# zlogin clu1
zone# groupadd -g 1000 postgres zone# useradd -g 1000 -u 1006 -d /postgres -m -s /bin/ksh postgres
zone# su - postgres
zone$ mkdir build zone$ cd build
zone PATH=$PATH:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin zone$ export PATH
zone$ gzcat /tmp/postgresql-8.1.0.tag.gz | tar xvf - zone$ cd /global/mnt3/postgres/build/postgresql-8.1.0 zone$ ./configure --prefix=/global/mnt3/postgres/postgresql-8.1.0
zone$ gmake
If you use gcc to build the postgres binaries, build them in a failover file system.
zone$ gmake check
zone$ gmake install
zone$ gmake clean