pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Hans Sebastian <hnsbstn@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Old active connections?
Date: Wed, 18 Apr 2018 11:06:52 +0900
Message-ID: <20180418020652.GH18178@paquier.xyz> (raw)
In-Reply-To: <CAKFQuwYHNZtKtXU+tBN1Tz2BT-u2oNXwU5ygw4N7z=7BBDVBaA@mail.gmail.com>
References: <CAMH0=P-VcGsBp+bHKr3j1BW=yqV7ff9b=_ZpO2+rqtVdmzBp1A@mail.gmail.com>
	<CAKFQuwYHNZtKtXU+tBN1Tz2BT-u2oNXwU5ygw4N7z=7BBDVBaA@mail.gmail.com>

On Tue, Apr 17, 2018 at 05:11:10PM -0700, David G. Johnston wrote:
> Long-lived non-idle statements would likely be waiting for a lock to be
> released.

Be very careful with transactions marked as "idle in transaction" for a
long time.  Long-running transactions prevent VACUUM to do its work as
the oldest XID in view is not updated, causing performance to go down,
and bloat to go up.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (4+ messages)

Message-ID: <20180418020652.GH18178@paquier.xyz>
Permalink:  ../20180418020652.GH18178@paquier.xyz/
Also on:    postgresql.org/message-id/20180418020652.GH18178@paquier.xyz

 · 

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: michael@paquier.xyz, david.g.johnston@gmail.com, hnsbstn@gmail.com
  Subject: Re: Old active connections?
  In-Reply-To: <20180418020652.GH18178@paquier.xyz>
  References: <CAMH0=P-VcGsBp+bHKr3j1BW=yqV7ff9b=_ZpO2+rqtVdmzBp1A@mail.gmail.com> <CAKFQuwYHNZtKtXU+tBN1Tz2BT-u2oNXwU5ygw4N7z=7BBDVBaA@mail.gmail.com> <20180418020652.GH18178@paquier.xyz>

* 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