pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brubaker, Shane <Shane_Brubaker@affymetrix.com>
To: pgsql-admin@postgresql.org
Cc: Cawley, Simon <Simon_Cawley@affymetrix.com>
Subject: Maximum Number of Tables in a database
Date: Wed, 24 Jul 2002 17:29:38 -0700
Message-ID: <53386E0C47E7D41194BB0002B325C997747F2B@NTEX60> (raw)

On the limitations page it states various maximums for PostgreSQL, but I
don't see an explicit reference to the maximum number of tables, a question
that has come up before.  

I'm guessing that the maximum number of tables is related to how much can be
stored in the pg_ tables which track the names and information of the
various fields in the database.

So, based on that, the maximum number of rows is unlimited and the maximum
size for a table is 64 TB.  So realistically, you would need an enormous
number (trillions) of tables to exceed that limit, and of course the actual
storage of those tables themselves would use up your disk long before you
ran out of room in the pg_ tables.

So I'm assuming there is no practical limit on the number of tables in a
given database.

In looking through the pg_ tables though, I don't see one that specifically
lists table names.  Is there one?  Is some information perhaps stored on
disk in the base, global, or clog areas?

We currently have a system with 100 GB of data and about 1000 tables.  We
are designing it such that there will be multiple machines in parallel, and
then within each machine a given Virtual table is broken down into many
smaller tables, so we will typically have about 1000-10,000 tables per
database.  

We'd be curious to hear of anyone who has pushed these limits further.

 

Thank You,

 

Shane Brubaker & the Transcriptome group

view thread (2+ messages)  latest in thread

Message-ID: <53386E0C47E7D41194BB0002B325C997747F2B@NTEX60>
Permalink:  ../53386E0C47E7D41194BB0002B325C997747F2B@NTEX60/
Also on:    postgresql.org/message-id/53386E0C47E7D41194BB0002B325C997747F2B@NTEX60

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Shane_Brubaker@affymetrix.com, Simon_Cawley@affymetrix.com
  Subject: Re: Maximum Number of Tables in a database
  In-Reply-To: <53386E0C47E7D41194BB0002B325C997747F2B@NTEX60>
  References: <53386E0C47E7D41194BB0002B325C997747F2B@NTEX60>

* 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