Re: multicolumn partitioning help

2023-03-15 Thread David Rowley
On Thu, 16 Mar 2023 at 00:47, James Robertson wrote: > or do we get? > > TopLevelTable > | > |> worker-thread 1 (default catch) > |> worker thread 2 -> sub-table 1.1 > |> worker thread 3 -> sub-table 1.2 > |> worker thread 4 -> sub-table 1.n > | > |> wor

Re: multicolumn partitioning help

2023-03-15 Thread David Rowley
On Wed, 15 Mar 2023 at 10:41, Laurenz Albe wrote: > I think you want subpartitioning, like > > CREATE TABLE humans ( > hash bytea, > fname text, > dob date > ) PARTITION BY LIST (EXTRACT (YEAR FROM dob)); This may be perfectly fine, but it is also important to highlight that pa

Re: multicolumn partitioning help

2023-03-15 Thread James Robertson
Laurenz, Justin, Thank you both for thinking of this problem. Laurenz your solution is how I thought I would work around my (lack of) understanding of partitioning. (nested partitions). I was hesitant because I didn't know what sort of performance problems I would create for myself. If we have tr

Re: multicolumn partitioning help

2023-03-15 Thread Laurenz Albe
On Tue, 2023-03-14 at 19:33 -0400, James Robertson wrote: > Laurenz your solution is how I thought I would work around my (lack of) > understanding > of partitioning. (nested partitions). > I was hesitant because I didn't know what sort of performance problems I > would create for myself. > > [.