Re: Dynamic creation of list partitions in highly concurrent write environment - Mailing list pgsql-general

From Jim Vanns
Subject Re: Dynamic creation of list partitions in highly concurrent write environment
Date
Msg-id CAH7vdhMjZbScgiUNLgsO7Zc_MVoexoaBx8tC41nKZVpKk5aX=Q@mail.gmail.com
Whole thread Raw
In response to Re: Dynamic creation of list partitions in highly concurrent write environment  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Yeah, that's a known concern - hence the evaluation as part of  the list vs. hash comparison ;)

Jim

On Thu, 1 Jun 2023 at 14:32, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Jim Vanns <jvanns@ilm.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


--
Jim Vanns
Principal Production Engineer
Industrial Light & Magic, London

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Dynamic creation of list partitions in highly concurrent write environment
Next
From: Adrian Klaver
Date:
Subject: Re: speed up full table scan using psql