Re: Old active connections? - Mailing list pgsql-general

From Michael Paquier
Subject Re: Old active connections?
Date
Msg-id 20180418020652.GH18178@paquier.xyz
Whole thread Raw
In response to Re: Old active connections?  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
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

Attachment

pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Old active connections?
Next
From: Michael Paquier
Date:
Subject: Re: Can PostgreSQL create new WAL files instead of reusing old ones?