Re: Maximum number of tables per database and slowness

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: William Yu <wyu(at)talisys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Maximum number of tables per database and slowness
Date: 2005-12-11 06:37:40
Message-ID: 10435.1134283060@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

William Yu <wyu(at)talisys(dot)com> writes:
> Benjamin Arai wrote:
>> What is the current maximum number of tables per database? Also, does
>> having more tables slow down performance in any way?

> For most cases, the answer is no. However, once you get near 6 figure
> table counts, pg_catalog ends up being pretty massive.

You also have to think about the performance implications of having tens
of thousands of files in your database directory. While some newer
filesystems aren't fazed by that particularly, a lot of 'em bog down on
lookups when there are more than a few thousand entries in a directory.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message stig erikson 2005-12-11 07:39:48 postgresql rpms (8.1.1) for redhat 8.0
Previous Message Michael Fuhr 2005-12-11 04:41:18 Re: Looking for information on PostgreSQL Stored Procedures