pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <kgrittn@ymail.com>
Cc: sean@chittenden.org <sean@chittenden.org>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13667: SSI violation...
Date: Fri, 30 Oct 2015 13:41:36 -0400
Message-ID: <16581.1446226896@sss.pgh.pa.us> (raw)
In-Reply-To: <1285273220.277372.1446226561203.JavaMail.yahoo@mail.yahoo.com>
References: <1810271785.1293615.1444427336478.JavaMail.yahoo@mail.yahoo.com>
	<1285273220.277372.1446226561203.JavaMail.yahoo@mail.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Kevin Grittner <kgrittn@ymail.com> writes:
> Thanks to Thomas Munro joining me in a 2.5 day marathon hunt for
> this bug, we have found it and squashed it with the attached patch.
> ...
> These checks are about as close to free as you can get if the
> transaction doing the check is not serializable; it doesn't even
> need to take out a LW lock to determine there is nothing to be
> done.  The reason given in the comment still has merit for
> serializable transactions; even for them the check is orders of
> magnitude cheaper than a WAL logged tuple insert.  It only requires
> an occasional serialization failure detection there to come out
> ahead.  So rather than move the existing check, we added a recheck
> after.

> Barring objections I will push this tomorrow, including
> back-patching it to all supported branches.

I'm okay with the substance of the patch, but that's a pretty miserable
excuse for fixing the comments.  Both the initial checks and the rechecks
ought to have at least a couple of sentences recapping the logic you gave
us here.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <16581.1446226896@sss.pgh.pa.us>
Permalink:  ../16581.1446226896@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16581.1446226896@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kgrittn@ymail.com, sean@chittenden.org
  Subject: Re: BUG #13667: SSI violation...
  In-Reply-To: <16581.1446226896@sss.pgh.pa.us>
  References: <1810271785.1293615.1444427336478.JavaMail.yahoo@mail.yahoo.com> <1285273220.277372.1446226561203.JavaMail.yahoo@mail.yahoo.com> <16581.1446226896@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