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

Deciding on a design for multi-tenancy

There are many reasons why we might want to split up groups of tables or applications: security, resource control, convenience. Whatever the reason, we often need to separate groups of tables (I avoid saying the word "database" just to avoid various confusions).

This topic is frequently referred to as multi-tenancy, though that is not a fully accepted term as yet.

The purpose of this recipe is to discuss the options and lead into other more detailed recipes.

How to do it...

If you want to run multiple physical databases on one server, then you have four main options, which are as follows:

  1. Run multiple sets of tables in different schemas in one database of a PostgreSQL instance
  2. Run multiple databases in the same ...

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