O'Reilly logo

PostgreSQL 9 Administration Cookbook by Hannu Krosing, Simon Riggs

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running multiple servers on one system

Running multiple PostgreSQL servers on one physical system is possible if this is more convenient for your needs.

Getting ready

Make sure you've read the recipe Deciding on a design for multi-tenancy, so that you're certain this is the route you wish to take. Other options exist, and it is possible they may be preferable in some cases.

How to do it...

Core PostgreSQL easily allows multiple servers running on the same system. There are a few wrinkles of which to be aware.

Some installer versions create a PostgreSQL data directory named "data". It then gets a little difficult to have more than one data directory without different directory structures and names.

The Debian/Ubuntu layout is specifically designed to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required