To test streaming replication, I would like to create a second instance of Postgres on the same computer. The idea is that if this can be done on a test server, then it should be trivial to install it on two production servers.
In instances, different configuration files and different data directories must be used. I tried following the instructions here http://ubuntuforums.org/showthread.php?t=1431697 , but I did not understand how to get Postgres to use a different configuration file. If I copy the init script, the scripts are just aliases to the same Postgres instance.
I am using Postgres 9.3 and the Postgres help pages say to specify a configuration file on the postgres command line. I'm not quite sure what that means. Should I install some kind of client for this? Thanks.
postgresql
npCompleteNoob
source share