From: Tom Lane <tgl@sss.pgh.pa.us>
To: koposov@ast.cam.ac.uk
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #11904: out of memory when scanning large number of partitions
Date: Fri, 07 Nov 2014 16:33:38 -0500
Message-ID: <14421.1415396018@sss.pgh.pa.us> (raw)
In-Reply-To: <20141107185824.2513.53433@wrigleys.postgresql.org>
References: <20141107185824.2513.53433@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
koposov@ast.cam.ac.uk writes:
> I have a large table (few Tb) partitioned in ~ 12000 smaller tables, using
> inheritance from the parent one.
That's an utterly insane number of partitions.
> I noticed that when the user tried to query from the parent table
> (not something we plan to do often), PG run out of memory (128 Gb on our
> machine).
I'm unsurprised.
The inheritance infrastructure is only designed to support maybe 100
child tables. If we ever get around to implementing a hard-wired
partitioning scheme, it's possible that multiple thousands of partitions
could be practical, but it isn't today. Sorry.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, koposov@ast.cam.ac.uk
Subject: Re: BUG #11904: out of memory when scanning large number of partitions
In-Reply-To: <14421.1415396018@sss.pgh.pa.us>
References: <20141107185824.2513.53433@wrigleys.postgresql.org> <14421.1415396018@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