pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: vacuumdb idle processes
Date: Tue, 15 Jun 2021 15:52:41 -0500
Message-ID: <ac10987a-d46c-2209-278f-4d90b0744081@gmail.com> (raw)
In-Reply-To: <CAMkU=1x8Uv1TdXy_RFtAtjHoGB7suQRy0_BvDThrNwo3-Y8hOA@mail.gmail.com>
References: <CAFpL5Vyb4dx=nqBZ_GB1M_TxA-3+E-bSav3fDQnVHW2udXEV5g@mail.gmail.com>
	<1972046.1623436429@sss.pgh.pa.us>
	<CAFpL5VwDxPpwuMxzOAMo7cYfgNsMzBU2ob_N7xcsDS_VBgyF-Q@mail.gmail.com>
	<CAFpL5Vyy9gAp6mXSPL5mD5zrm2gTaz04_HwHjZuaxv8eCuaBVw@mail.gmail.com>
	<CAMkU=1x8Uv1TdXy_RFtAtjHoGB7suQRy0_BvDThrNwo3-Y8hOA@mail.gmail.com>

On 6/15/21 3:20 PM, Jeff Janes wrote:
> On Sun, Jun 13, 2021 at 8:43 AM Nikhil Shetty <nikhil.dba04@gmail.com 
> <mailto:nikhil.dba04@gmail.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.

view thread (9+ messages)  latest in thread

Message-ID: <ac10987a-d46c-2209-278f-4d90b0744081@gmail.com>
Permalink:  ../ac10987a-d46c-2209-278f-4d90b0744081@gmail.com/
Also on:    postgresql.org/message-id/ac10987a-d46c-2209-278f-4d90b0744081@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: vacuumdb idle processes
  In-Reply-To: <ac10987a-d46c-2209-278f-4d90b0744081@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox