Ubuntu: postgresql alternative instance

pg_createcluster <version> <name>

[root@host]# pg_createcluster 8.4 slave

It'll create /etc/postgresql/8.4/slave directory with config files.

and /var/lib/postgresql/8.4/slave directory with db.

PS: created instance will has port = old port+1.