pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anand Muthukrishnan <lucky.developer@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Postgres schema having > 20,000 schemas
Date: Wed, 24 Jul 2013 16:41:07 +0530
Message-ID: <D3DD6C1B-5A7B-4432-92D4-690BCB0E6765@gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Can a single Postgres database contain more than 20,000 schemas? What are the implications of such a database design.

I was reading about postgres schemas here - http://www.postgresql.org/docs/8.2/static/ddl-schemas.html and I'm planning to create one schema per account in my multi-tenant Ruby on Rails app. Each schema would have a set of tables to store data of the relevant account.

Each user/schema for all the features we offer, could have 50-60 tables.

Can postgres handle all of this without any hiccups, provided I allocate a large EC2 instance to host the database server ?

By experience if any one faced trouble with such number of schemas in postgres, they could share and i thought i can get more guidance to avoid such pitfalls.

view thread (5+ messages)  latest in thread

Message-ID: <D3DD6C1B-5A7B-4432-92D4-690BCB0E6765@gmail.com>
Permalink:  ../D3DD6C1B-5A7B-4432-92D4-690BCB0E6765@gmail.com/
Also on:    postgresql.org/message-id/D3DD6C1B-5A7B-4432-92D4-690BCB0E6765@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: lucky.developer@gmail.com
  Subject: Re: Postgres schema having > 20,000 schemas
  In-Reply-To: <D3DD6C1B-5A7B-4432-92D4-690BCB0E6765@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox