Re: Query on partitioned table needs memory n_partitions * work_mem

2024-07-19 Thread Dimitrios Apostolou
Ok I reproduced the OOM, with only 200 partitions as opposed to 2K that I mentioned before. The keys to reproduce it I believe are: 1. Write millions of rows to *all* partitions 2. Run ANALYSE so that the planner knows about the sizes Here are the correct steps now. Let me know if you manage to

Re: Fwd: Regarding tables detach concurrently with run_maintenance_proc()

2024-07-19 Thread Durgamahesh Manne
On Fri, Jul 19, 2024 at 7:55 PM Christoph Berg wrote: > Re: Durgamahesh Manne > > with pg_partman By default proc() does not detach tables concurrently. > How > > do we implement tables detach concurrently without blocking other > sessions > > Here queries not using date column to detach tables w

Re: Fwd: Regarding tables detach concurrently with run_maintenance_proc()

2024-07-19 Thread Christoph Berg
Re: Durgamahesh Manne > with pg_partman By default proc() does not detach tables concurrently. How > do we implement tables detach concurrently without blocking other sessions > Here queries not using date column to detach tables with > run_maintenance_proc() which is not using concurrently based

Re: Query on partitioned table needs memory n_partitions * work_mem

2024-07-19 Thread Dimitrios Apostolou
On Thu, 18 Jul 2024, David Rowley wrote: On Fri, 12 Jul 2024 at 02:08, Dimitrios Apostolou wrote: * The memory is unnecessarily allocated early on, before any partitions are actually aggregated. I know this because I/O is slow on this device and the table sizes are huge, it's simply not

Re: PgbackRest and EDB Query

2024-07-19 Thread KK CHN
Hi list, Thank you all for the great help and guidance, I am able to configure pgbackrest with EPAS-16 and a Repo server both separate machines.. Password less auth also worked well. Backup and restore all fine. Query How can I make the Reposerver to host more than one EPAS-16 server ins

Fwd: Regarding tables detach concurrently with run_maintenance_proc()

2024-07-19 Thread Durgamahesh Manne
Hi Respected Team with pg_partman By default proc() does not detach tables concurrently. How do we implement tables detach concurrently without blocking other sessions Here queries not using date column to detach tables with run_maintenance_proc() which is not using concurrently based on the rete

Re: Planet Postgres and the curse of AI

2024-07-19 Thread Laurenz Albe
On Thu, 2024-07-18 at 10:25 -0400, Greg Sabino Mullane wrote: > > But to what degree exactly should that be allowed? > > Somewhat ironically, here's a distinction chatgpt and I came up with: > > LLM-generated content: Content where the substantial part of the text is > directly > created by LLMs