Create multiple Postgres instances on same machine : <p>To test streaming replication, I would like to create a second Postgres instance on the same machine. The idea is that if it can be done on the test server, then it should be trivial to set it up on the two production servers.</p>

<p>The instances should use different configuration files and different data directories. I tried following the instructions here <a href="http://ubuntuforums.org/showthread.php?t=1431697" rel="noreferrer">http://ubuntuforums.org/showthread.php?t=1431697</a> but I haven't figured out 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.</p>

<p>I'm using Postgres 9.3 and the Postgres help pages say to specify the configuration file on the <code>postgres</code> command line. I'm not really sure what this means. Am I supposed to install some client for this to work? Thanks.</p>
