From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Treat <xzilla@users.sourceforge.net>
Cc: Ashvinder Singh <ashvindersingh@hfcl.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Maximum Number Tables
Date: Thu, 15 Apr 2004 19:33:41 -0400
Message-ID: <22272.1082072021@sss.pgh.pa.us> (raw)
In-Reply-To: <1082039198.23008.816.camel@camel>
References: <001d01c42046$8bed97e0$5608a8c0@ashvinder>
<1082039198.23008.816.camel@camel>
Robert Treat <xzilla@users.sourceforge.net> writes:
> On Mon, 2004-04-12 at 00:28, Ashvinder Singh wrote:
>> What is the maximum number of tables I can have in a PGSql Database,
>> without affecting performance?
> The number of tables is irrelevant,
Not necessarily ... if you are using a filesystem in which directory
lookups in large directories are inefficient, you could have a problem,
since each table will correspond to a file within the database
directory. If you're planning on having more than a few thousand
tables you'll want to choose a filesystem that copes well with large
directories.
But having said that, an application that needs several thousand
distinct tables is usually an application that needs a redesign.
Consider folding the data into fewer tables with more key columns.
regards, tom lane
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: tgl@sss.pgh.pa.us, xzilla@users.sourceforge.net, ashvindersingh@hfcl.com
Subject: Re: Maximum Number Tables
In-Reply-To: <22272.1082072021@sss.pgh.pa.us>
References: <001d01c42046$8bed97e0$5608a8c0@ashvinder> <1082039198.23008.816.camel@camel> <22272.1082072021@sss.pgh.pa.us>
* 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