From: Vedran Krivokuca <vkrivokuca@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Experience with large number of tables in single PostgreSQL instance
Date: Wed, 10 Apr 2013 15:05:20 +0200
Message-ID: <CAP+XhHvTLhfaAaMGTeOoDF2j32eUXnLBmMt7jd5i0LpbFUtj2g@mail.gmail.com> (raw)
In-Reply-To: <5165261E.4050207@hssnet.com>
References: <CAP+XhHu0V1-cUs5+Zcb7htaiG9HX0_Yvr=iWE1NGoeCece2gvQ@mail.gmail.com>
<CAP+XhHsry4DinX+2eNSdrgD2NLpV8tHpJoC8rDTPQ7gqMYxnWQ@mail.gmail.com>
<CAF8jcqp-XZJX7WLNYQ4+zhpTr4Db3GhKs=MrUSgF61MgbjO2bQ@mail.gmail.com>
<5165261E.4050207@hssnet.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On Wed, Apr 10, 2013 at 10:43 AM, Dale Betts <dale.betts@hssnet.com> wrote:
>
> I'd agree, certainly in my experiences.
>
> You need to ensure OS parameters such as the max open files (fs.file-max if we're talking
> Linux) is set appropriately. Baring in mind each user will have an open file on each
> underlying datafile for the databases they're connected to.
Ok, to reply to myself and other interested parties, further insights
are welcome!
I've been digging today for information on this subject and:
http://postgresql.1045698.n5.nabble.com/GENERAL-Maximum-number-of-tables-per-database-and-slowness-t...
Basically saying: any number of tables is acceptable (well in range of
couple of tens of thousands we might end up with), but have in mind
pg_catalog might seriously grow with such number of tables.
Huge pg_catalog tends to slow down query planner. This thread is from
2005., but I doubt those fact changed substionally with time.
I'll probably do some testing, but I can hardly replicate production
volume of data. Seems that due to predictable nature of the queries we
are running against this system we'll go with multiple databases, each
containing up to couple thousand tables at most. Still weighting pros
and cons of each approach.
--
Pozdrav/Greetings,
Vedran Krivokuća
Disclaimer: This message may contain information.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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: vkrivokuca@gmail.com
Subject: Re: Experience with large number of tables in single PostgreSQL instance
In-Reply-To: <CAP+XhHvTLhfaAaMGTeOoDF2j32eUXnLBmMt7jd5i0LpbFUtj2g@mail.gmail.com>
References: <CAP+XhHu0V1-cUs5+Zcb7htaiG9HX0_Yvr=iWE1NGoeCece2gvQ@mail.gmail.com> <CAP+XhHsry4DinX+2eNSdrgD2NLpV8tHpJoC8rDTPQ7gqMYxnWQ@mail.gmail.com> <CAF8jcqp-XZJX7WLNYQ4+zhpTr4Db3GhKs=MrUSgF61MgbjO2bQ@mail.gmail.com> <5165261E.4050207@hssnet.com> <CAP+XhHvTLhfaAaMGTeOoDF2j32eUXnLBmMt7jd5i0LpbFUtj2g@mail.gmail.com>
* 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