Re: Query on partitioned table needs memory n_partitions * work_mem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dimitrios Apostolou <jimis(at)gmx(dot)net>
Cc: David Rowley <dgrowleyml(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Query on partitioned table needs memory n_partitions * work_mem
Date: 2024-07-11 14:43:42
Message-ID: 2077940.1720709022@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dimitrios Apostolou <jimis(at)gmx(dot)net> writes:
> The TABLE test_runs_raw has 1000 partitions on RANGE(workitem_n).

So don't do that. Adding partitions is not cost-free.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message H 2024-07-11 14:57:15 Running psql in a docker container
Previous Message Dimitrios Apostolou 2024-07-11 14:08:42 Re: Query on partitioned table needs memory n_partitions * work_mem