pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vik Fearing <vik.fearing@2ndquadrant.com>
To: Don Seiler <don@seiler.us>
To: Vick Khera <vivek@khera.org>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Vacuum process waiting on BufferPin
Date: Tue, 14 Aug 2018 15:58:59 +0200
Message-ID: <712d9ac9-5c7a-ace4-5030-d282573f89bb@2ndquadrant.com> (raw)
In-Reply-To: <CAHJZqBD0ecLukUSVcU=waP93Z9nnxVM2+f9SF9L0wnOVM0Xwpw@mail.gmail.com>
References: <CAHJZqBDsH07idGPhdiMLVWVU5_YSGVo9DiVCFjNq21ZoBcP4Vg@mail.gmail.com>
	<20180813211506.spvawcczdukdxa4u@alvherre.pgsql>
	<CAHJZqBA5fhYScUba3G6YFoL_A2AxnDzUv9HDG3UQ-JpLbddOhw@mail.gmail.com>
	<CALd+dccyrP=8OQBEck8xdbFLBBCVALNSZ5M5eJx8V14pPU=xFg@mail.gmail.com>
	<CAHJZqBAON7a9LGxf3gAtptoEG6AngHCwCibZGRBYn6dqsSreJQ@mail.gmail.com>
	<CALd+dceTTCsrfOh5BjLos3Rim+GTS0iCDiA0t9L-J-Uv+O-Bpg@mail.gmail.com>
	<CAHJZqBD0ecLukUSVcU=waP93Z9nnxVM2+f9SF9L0wnOVM0Xwpw@mail.gmail.com>

On 14/08/18 15:26, Don Seiler wrote:
> On Tue, Aug 14, 2018 at 8:23 AM, Vick Khera <vivek@khera.org
> <mailto:vivek@khera.org>> wrote:
> 
> 
>     The general fix is to never sit idle in transaction, but this
>     specific case closing the cursor seems like it will also do it.
> 
> 
> Of course. I've let development know that they need to sort out why it's
> left that way.

There is an idle_in_transaction_session_timeout parameter to kill
connections that are idle (in transaction) for too long.  It was
implemented specifically for cases like this.
-- 
Vik Fearing                                          +33 6 46 75 15 36
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support




view thread (10+ messages)  latest in thread

Message-ID: <712d9ac9-5c7a-ace4-5030-d282573f89bb@2ndquadrant.com>
Permalink:  ../712d9ac9-5c7a-ace4-5030-d282573f89bb@2ndquadrant.com/
Also on:    postgresql.org/message-id/712d9ac9-5c7a-ace4-5030-d282573f89bb@2ndquadrant.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: vik.fearing@2ndquadrant.com, don@seiler.us, vivek@khera.org
  Subject: Re: Vacuum process waiting on BufferPin
  In-Reply-To: <712d9ac9-5c7a-ace4-5030-d282573f89bb@2ndquadrant.com>
  References: <CAHJZqBDsH07idGPhdiMLVWVU5_YSGVo9DiVCFjNq21ZoBcP4Vg@mail.gmail.com> <20180813211506.spvawcczdukdxa4u@alvherre.pgsql> <CAHJZqBA5fhYScUba3G6YFoL_A2AxnDzUv9HDG3UQ-JpLbddOhw@mail.gmail.com> <CALd+dccyrP=8OQBEck8xdbFLBBCVALNSZ5M5eJx8V14pPU=xFg@mail.gmail.com> <CAHJZqBAON7a9LGxf3gAtptoEG6AngHCwCibZGRBYn6dqsSreJQ@mail.gmail.com> <CALd+dceTTCsrfOh5BjLos3Rim+GTS0iCDiA0t9L-J-Uv+O-Bpg@mail.gmail.com> <CAHJZqBD0ecLukUSVcU=waP93Z9nnxVM2+f9SF9L0wnOVM0Xwpw@mail.gmail.com> <712d9ac9-5c7a-ace4-5030-d282573f89bb@2ndquadrant.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