Re: Maximum number of tables per database and slowness

From: William Yu <wyu(at)talisys(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Maximum number of tables per database and slowness
Date: 2005-12-10 22:55:57
Message-ID: dnfmdq$ore$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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. The problem is
that the query planner must check pg_catalog for every query to see what
indexes are available, what the statistics & value distributions are,
etc. in order to build the optimal plan. At some point, a really large
pg_catalog can begin to bog down your system.

See the performance list for a recent discussion about this very issue.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Vollmer 2005-12-10 22:57:59 Re: tsearch2: How to use different configurations for two
Previous Message Grzegorz Przeździecki 2005-12-10 22:00:38 Re: random delays