Re: Very Large Table Partitioning - Mailing list pgsql-novice

From Tom Lane
Subject Re: Very Large Table Partitioning
Date
Msg-id 4393.1292614729@sss.pgh.pa.us
Whole thread Raw
In response to Very Large Table Partitioning  (Majid Azimi <majid.merkava@gmail.com>)
Responses Re: Very Large Table Partitioning  (Mladen Gogala <mladen.gogala@vmsinfo.com>)
List pgsql-novice
Majid Azimi <majid.merkava@gmail.com> writes:
> if we decide to partition table per user we have lots of tables (maybe
> more than 100000+) with only 10000 records each.
> is this a good idea? is there any limit for number of tables?

No, it's a fantastically bad idea.  Please note the caveats in the
partitioning documentation --- the facility is not meant for more than
order-of-a-hundred partitions.  Even if Postgres didn't have issues with
it, your filesystem might get ill with hundreds of thousands of files in
one directory.

            regards, tom lane

pgsql-novice by date:

Previous
From: Majid Azimi
Date:
Subject: Very Large Table Partitioning
Next
From: Mladen Gogala
Date:
Subject: Re: Very Large Table Partitioning