anchor.diff:  psql -h restored-primary -U postgres postgres
   ....
   
  -
   ==== OpenShift
   
  -This is an example of restoring a database pod using
  -an existing backup archive located on an NFS volume.
  -
  -First, locate the database backup you want to restore, for example:
  -....
  -/nfsfileshare/pg-primary/2016-01-29:22:34:20
  +Start the backup:
  +....
  +cd $CCPROOT/examples/openshift/backup-job
  +./run.sh
  +....
  +
  +The *examples/openshift/crunchy-pv-backup.json* specifies a *persistentVolumeReclaimPolicy*
  +of *Retain* to tell OpenShift that we want to keep the volume contents after the removal of the PV.
  +
  +*primary-restore*
  +
  +When ready to restore, you will need the timestamped directory path under
  +/mnt/nfsfileshare/basic in order to locate the backup to use. Edit the primary-restore.json
  +file and update the BACKUP_PATH setting to specify the NFS backup path you want to restore with.
  +....
  +"name": "BACKUP_PATH",
  +"value": "basic/2016-05-27-14-35-33"
   ....
   
   Then create the pod:
  
positive.code: 
  ==== Kubernetes
  
  This example deploys a PostgreSQL cluster with a primary,
  a synchronous replica, and an asynchronous replica.  The
  two replicas share the same Service.
  
  Running the example:
  ....
  cd $CCPROOT/examples/kube/sync
  ./run.sh
  ....
  
  Connect to the *primarysync* and *replicasync* databases as follows:
  ....
  psql -h primarysync -U postgres postgres -c 'create table mister (id int)'
  psql -h primarysync -U postgres postgres -c 'insert into mister values (1)'
  psql -h primarysync -U postgres postgres -c 'table pg_stat_replication'
  psql -h replicasync -U postgres postgres -c 'select inet_server_addr(), * from mister'
  psql -h replicasync -U postgres postgres -c 'select inet_server_addr(), * from mister'
  psql -h replicasync -U postgres postgres -c 'select inet_server_addr(), * from mister'
  ....
  
  This set of queries will show you the IP address of the PostgreSQL replica
  container, notice it changes because of the round-robin Service proxy
  we are using for both replicas.  The example queries also show that both
  replicas are replicating from the primary.
  
  ==== OpenShift
  
  This example deploys a PostgreSQL cluster with a primary,
  a synchrounous replica, and an asynchronous replica.  The
  two replicas share the same Service.
  
  Running the example:
  ....
  cd $CCPROOT/examples/openshift/sync
  ./run.sh
  ....
  
  Connect to the *primary* and *replica* databases as follows:
  ....
  psql -h primary -U postgres postgres -c 'create table mister (id int)'
  psql -h primary -U postgres postgres -c 'insert into mister values (1)'
  psql -h primary -U postgres postgres -c 'table pg_stat_replication'
  psql -h replica -U postgres postgres -c 'select inet_server_addr(), * from mister'
  psql -h replica -U postgres postgres -c 'select inet_server_addr(), * from mister'
  psql -h replica -U postgres postgres -c 'select inet_server_addr(), * from mister'
  ....
  
  This set of queries will show you the IP address of the PostgreSQL replica
  container, notice it changes because of the round-robin Service proxy
  we are using for both replicas.  The example queries also show that both
  replicas are replicating from the primary.
  
  === Statefulsets
  
  ==== Kubernetes
  
  This example deploys a statefulset named *pgset*.  The statefulset
  is a new feature in Kubernetes as of version 1.5.  Statefulsets have
  replaced PetSets going forward.
  
  This example creates 2 PostgreSQL containers to form the set.  At
  startup, each container will examine its hostname to determine
  if it is the first container within the set of containers.
  
  The first container is determined by the hostname suffix assigned
  by Kube to the pod.  This is an ordinal value starting with *0*.
  
  If a container sees that it has an ordinal value of *0*, it will
  update the container labels to add a new label of:
  
negative.code: 
  The only differences are the following:
  
   * paths are *$CCPROOT/examples/kube/pitr*
   * JSON and scripts are modified to work with Kubernetes
   * *kubectl* commands are used instead of *oc* commands
   * database services resolve to *default.svc.cluster.local* instead
     of *openshift.svc.cluster.local*
  
  ==== OpenShift
  
  Start by running the example database container:
  ....
  cd $CCPROOT/examples/openshift/pitr
  ./run-primary-pitr.sh
  