Re: vacuumdb idle processes

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: vacuumdb idle processes
Date: 2021-06-15 20:52:41
Message-ID: ac10987a-d46c-2209-278f-4d90b0744081@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 6/15/21 3:20 PM, Jeff Janes wrote:
> On Sun, Jun 13, 2021 at 8:43 AM Nikhil Shetty <nikhil(dot)dba04(at)gmail(dot)com
> <mailto:nikhil(dot)dba04(at)gmail(dot)com>> wrote:
>
> Hi,
>
> I tested this scenario and it seems if vacuumdb is started with
> multiple jobs and one of the jobs doesn't complete due to a lock or
> whatever reason, other jobs will stay idle and don't release the
> connection until the stuck job is finished.
>
> For my understanding, why do we need this behaviour?
>
>
> I don't think we **need** this behavior, it is just a simple way to wait
> for each one to finish and then close it; waiting for each specific one in
> the order it is present in the list.  Is there an important reason we need
> a more complex behavior, closing each one as soon as it becomes idle once
> the work queue is empty?

"Disconnect when you're finished" is Best Practice, no?

--
Angular momentum makes the world go 'round.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Wells Oliver 2021-06-16 00:54:37 Dump & restore in directory format and permissions are largely lost?
Previous Message Jeff Janes 2021-06-15 20:20:39 Re: vacuumdb idle processes