Re: select count() out of memory - Mailing list pgsql-general

From Scott Marlowe
Subject Re: select count() out of memory
Date
Msg-id dcc563d10710250744v60f8ffd3ob3b577af29bfe3ec@mail.gmail.com
Whole thread Raw
In response to Re: select count() out of memory  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On 10/25/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > tfinneid@student.matnat.uio.no wrote:
> >> I did a test previously, where I created 1 million partitions (without
> >> data) and I checked the limits of pg, so I think it should be ok.
>
> > Clearly it's not.
>
> You couldn't have tested it too much --- even planning a query over so
> many tables would take forever, and actually executing it would surely
> have run the system out of locktable space before it even started
> scanning.
>
> The partitioning facility is designed for partition counts in the tens,
> or maybe hundreds at the most.

I've had good results well into the hundreds, but after about 400 or
so, things start to get a bit wonky.

pgsql-general by date:

Previous
From: tfinneid@student.matnat.uio.no
Date:
Subject: Re: select count() out of memory
Next
From: Reg Me Please
Date:
Subject: Re: Crosstab Problems