Re: Dynamic creation of list partitions in highly concurrent write environment

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jim Vanns <jvanns(at)ilm(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Dynamic creation of list partitions in highly concurrent write environment
Date: 2023-06-01 13:32:17
Message-ID: 3807.1685626337@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jim Vanns <jvanns(at)ilm(dot)com> writes:
> Here's the general approach we have, without code and with hypothetical
> model, since I'm writing this hastily;

> table devices; <-- After trigger on here
> table routes; <-- To create physical partition for this logical table
> table route_for_device_N; <-- The dynamically created partition

> We don't know the device names and thus partitions up front, hence the need
> for dynamic creation. How do you go about doing this or is it folly!?

Sounds like folly, TBH. You're going to end with a ridiculous number
of partitions of the routes table, which will not be good for performance.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Vanns 2023-06-01 13:45:05 Re: Dynamic creation of list partitions in highly concurrent write environment
Previous Message Marc Millas 2023-06-01 10:42:40 Re: Hash Index on Partitioned Table