Re: hash joins are causing no space left error

2020-08-15 Thread Ayub M
On Wed, Aug 12, 2020 at 8:06 PM Tom Lane wrote: > Ayub M writes: > > This is PostgreSQL 11 on AWS, there is a mview query in this OLAP > database, > > the tables involved are huge - 50-100m records on average records > hundreds > > of columns in most cases. The query runs for a while and then er

Re: hash joins are causing no space left error

2020-08-13 Thread Michael Lewis
On Wed, Aug 12, 2020 at 5:52 PM Ayub M wrote: > > This is PostgreSQL 11 on AWS, there is a mview query in this OLAP > database, the tables involved are huge - 50-100m records on average records > hundreds of columns in most cases. > How many tables and how many partitions each? Can you share an E

Re: hash joins are causing no space left error

2020-08-12 Thread Tom Lane
Ayub M writes: > This is PostgreSQL 11 on AWS, there is a mview query in this OLAP database, > the tables involved are huge - 50-100m records on average records hundreds > of columns in most cases. The query runs for a while and then errors out > saying "No space left on device". I could see it ge

hash joins are causing no space left error

2020-08-12 Thread Ayub M
This is PostgreSQL 11 on AWS, there is a mview query in this OLAP database, the tables involved are huge - 50-100m records on average records hundreds of columns in most cases. The query runs for a while and then errors out saying "No space left on device". I could see it generating around 500gb of