Re: Detach partition concurrently from pg cron - Mailing list pgsql-admin

From Sathish Reddy
Subject Re: Detach partition concurrently from pg cron
Date
Msg-id CA+M9Y+Ao9LwwGifGibAT4aQH5f2HVpMfyQzOyD8XV+GKS8Y1NA@mail.gmail.com
Whole thread Raw
In response to Re: Detach partition concurrently from pg cron  (Keith Fiske <keith.fiske@crunchydata.com>)
Responses Re: Detach partition concurrently from pg cron
List pgsql-admin

Thanks for the advice.please help me on configure pg_cron schedule job trigger from postgres database to another database will run job

Thanks
Sathish Reddy

On Mon, Jul 8, 2024, 6:46 PM Keith Fiske <keith.fiske@crunchydata.com> wrote:
On Mon, Jul 8, 2024 at 5:43 AM Sathish Reddy <sathishreddy.postgresql@gmail.com> wrote:
Hi 
  Please help me on partman detach partition concurrently using pg cron run from postgres database to another database in detail.

Thanks 
Sathish Reddy 

Concurrent detach is not possible with pg_partman at this time. No concurrent operations can be called within a function's transaction block.

See this issue for more information - https://github.com/pgpartman/pg_partman/issues/387

If you need to detach concurrently, you will have to use some separate process to do it at this time. Not sure if that can be done with pg_cron since I'm not sure if that is also doing its own calls within a functional transaction. 

--
Keith Fiske
Senior Database Engineer
Crunchy Data - http://crunchydata.com

pgsql-admin by date:

Previous
From: niraj nandane
Date:
Subject: Re: How to restrict schema size per tenant
Next
From: srinivasan s
Date:
Subject: Re: Detach partition concurrently from pg cron