Postgresql 12, 512 partition by hash. Slow select

2020-04-05 Thread Arya F
I have a table with 120 million rows of data spread among 512 partitioned by hash table. The id column of the table is a uuid, which is what is being used for the partition hash and it's also the PK for the table. The table has a text column, which also has a btree index on it. A select query on a

Re: Postgresql 12, 512 partition by hash. Slow select

2020-04-05 Thread Andreas Kretschmer
Am 05.04.20 um 19:48 schrieb Arya F: Am I missing something in my setup? Or is this expected? I do know having more than 100 partitions in prior versions of PostgreSQL 12 would cause a major slow down, but from what I read PostgreSQL 12 addresses that now? to say more about your problem we n

Re: Postgresql 12, 512 partition by hash. Slow select

2020-04-05 Thread Tom Lane
Arya F writes: > I have a table with 120 million rows of data spread among 512 > partitioned by hash table. The id column of the table is a uuid, which > is what is being used for the partition hash and it's also the PK for > the table. > The table has a text column, which also has a btree index

Re: Postgresql 12, 512 partition by hash. Slow select

2020-04-05 Thread Arya F
On Sun, Apr 5, 2020 at 2:55 PM Tom Lane wrote: > > Arya F writes: > > I have a table with 120 million rows of data spread among 512 > > partitioned by hash table. The id column of the table is a uuid, which > > is what is being used for the partition hash and it's also the PK for > > the table. >

Re: Postgresql 12, 512 partition by hash. Slow select

2020-04-05 Thread Neil
> On Apr 5, 2020, at 2:50 PM, Arya F wrote: > > The table at some point will have more than 1 billion rows, the > information stored is international residential addresses. Trying to > figure out a way of spreading the data fairly evenly thought out > multiple partitions, but I was unable to co