From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ben Hoskings <ben@hoskings.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Occasional lengthy locking causing stalling on commit
Date: Sun, 31 Jan 2021 18:33:54 -0500
Message-ID: <3252500.1612136034@sss.pgh.pa.us> (raw)
In-Reply-To: <CACTv1A+2zhtcGDgrS5N2E4ho04d7CrvrOZ9GdWC1st2M-TPTcw@mail.gmail.com>
References: <CACTv1AL=6QNxku8riJ8VS0xFFnK2wNETy-H4tz+WUE=vBcUPsw@mail.gmail.com>
<2884110.1612025414@sss.pgh.pa.us>
<CACTv1A+2zhtcGDgrS5N2E4ho04d7CrvrOZ9GdWC1st2M-TPTcw@mail.gmail.com>
Ben Hoskings <ben@hoskings.net> writes:
> I wonder if there are any likely candidates that we could look into -
> for example, is it possible it could be due a batched index update
> that we could alleviate with "fastupdate=off"?
No. This is late enough in the commit code path that we really
don't want to be running anything that would take a long time or
have a significant probability of failure. So I'm a bit mystified
as to what it could be. Ockham's razor suggests that it's the
notify processing itself, as you seem to be an outlier in how
heavily you're using that; but that's no sure thing.
One thing that just occurred to me is that you might find it
interesting to keep tabs on what's in the $PGDATA/pg_notify
directory. Do the performance burps correspond to transitory
peaks in the amount of data there? Or (grasping at straws here...)
wraparound of the file names back to 0000?
regards, tom lane
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: tgl@sss.pgh.pa.us, ben@hoskings.net
Subject: Re: Occasional lengthy locking causing stalling on commit
In-Reply-To: <3252500.1612136034@sss.pgh.pa.us>
References: <CACTv1AL=6QNxku8riJ8VS0xFFnK2wNETy-H4tz+WUE=vBcUPsw@mail.gmail.com> <2884110.1612025414@sss.pgh.pa.us> <CACTv1A+2zhtcGDgrS5N2E4ho04d7CrvrOZ9GdWC1st2M-TPTcw@mail.gmail.com> <3252500.1612136034@sss.pgh.pa.us>
* 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