pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Benedict Holland <benedict.m.holland@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Update blocking a select count(*)?
Date: Fri, 15 Jun 2012 15:00:06 -0500
Message-ID: <4FDB4DF602000025000484FE@gw.wicourts.gov> (raw )
In-Reply-To: <CAD+mzoxCUbQJb4XMuNizFXU9mVYcUg9myGomKXW1TwXuKnauTg@mail.gmail.com >
References: <CAD+mzoxfm8Wa5hrekeakG_TYNd_dsTR3W3DPZEV90chuzh0N_A@mail.gmail.com >
<CAEYLb_WqEecnjr5o0DoNh15kNF_FXGkErVKw7fCGM5xxNLmrvQ@mail.gmail.com >
<4FDB3C0202000025000484E4@gw.wicourts.gov >
<CAD+mzozTqB8YiFQsgxU5mMqVo01wxVE0yiwoMHD_uSfSApKt7Q@mail.gmail.com >
<CAD+mzoykMCtGaAKN9jOyH=nDF1E=EORcs4DSAbbKwvt4jJEXsQ@mail.gmail.com >
<4FDB40B702000025000484EE@gw.wicourts.gov >
<CAD+mzowzWWea80Vthj_xNuiDOZzyqLpDZpjMgMSY-fHL-ewsCg@mail.gmail.com >
<4FDB476A02000025000484F4@gw.wicourts.gov >
<CAD+mzoxCUbQJb4XMuNizFXU9mVYcUg9myGomKXW1TwXuKnauTg@mail.gmail.com >
Benedict Holland <benedict.m.holland@gmail.com> wrote:
> Is it a bug that the blocking process reported is the finial
> process but really the process blocking the intermediate?
What reported that? The PostgreSQL server doesn't report such
things directly, and I don't know pgadmin, so I don't know about
that tool. I wrote the recursive query on this page:
http://wiki.postgresql.org/wiki/Lock_dependency_information
So if that reported anything incorrecly, please let me know so I can
fix it.
By the way, the example with the three connections would have been
better had I suggested a BEGIN TRANSACTION ISOLATION LEVEL
REPEATABLE READ; on the third connection. With that, even if one or
both of the transactions on the other connections committed, the
third transaction's count should remain unchanged.
-Kevin
view thread (18+ messages) latest in thread
Message-ID: <4FDB4DF602000025000484FE@gw.wicourts.gov>
Permalink: ../4FDB4DF602000025000484FE@gw.wicourts.gov/
Also on: postgresql.org/message-id/4FDB4DF602000025000484FE@gw.wicourts.gov
copy link · copy postgr.es
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-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, benedict.m.holland@gmail.com
Subject: Re: Update blocking a select count(*)?
In-Reply-To: <4FDB4DF602000025000484FE@gw.wicourts.gov>
* 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