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. > > [.

Re: multicolumn partitioning help

2023-03-14 Thread Laurenz Albe
On Sun, 2023-03-12 at 13:59 -0400, James Robertson wrote: > I am having issues with multicolumn partitioning. For reference I am using > the following link as my guide: > https://www.postgresql.org/docs/devel/sql-createtable.html > > To demonstrate my problem, I created a simple table called huma

Re: multicolumn partitioning help

2023-03-14 Thread Justin Pryzby
On Sun, Mar 12, 2023 at 01:59:32PM -0400, James Robertson wrote: > Hey folks, > I am having issues with multicolumn partitioning. For reference I am using > the following link as my guide: > https://www.postgresql.org/docs/devel/sql-createtable.html > > Reading the documentation: "When creating

multicolumn partitioning help

2023-03-14 Thread James Robertson
Hey folks, I am having issues with multicolumn partitioning. For reference I am using the following link as my guide: https://www.postgresql.org/docs/devel/sql-createtable.html To demonstrate my problem, I created a simple table called humans. I want to partition by the year of the human birth and