Re: Maximum number of tables per database and slowness - Mailing list pgsql-general

From William Yu
Subject Re: Maximum number of tables per database and slowness
Date
Msg-id dnfmdq$ore$1@news.hub.org
Whole thread Raw
In response to Maximum number of tables per database and slowness  (Benjamin Arai <barai@cs.ucr.edu>)
Responses Performance large tables.
Re: Maximum number of tables per database and slowness
List 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.

pgsql-general by date:

Previous
From: Benjamin Arai
Date:
Subject: Maximum number of tables per database and slowness
Next
From: Stephan Vollmer
Date:
Subject: Re: tsearch2: How to use different configurations for two