pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: getting rid of SnapshotNow
Date: Fri, 26 Jul 2013 10:10:46 -0400
Message-ID: <15345.1374847846@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZfnK9zgK2YfrCLYaR0izo5qQb6C5fr1GP7QfPPNhZznA@mail.gmail.com>
References: <CA+TgmoaLeu7wKtfPA0v=iQNMKOJZqg4TZf1Gyxn=7mbwa=Mxag@mail.gmail.com>
	<CA+TgmoZ_q2KMkxZAoRxRHB7k1tOmjVjQgYt2JuA7=U7QZoLxNw@mail.gmail.com>
	<2812.1374596914@sss.pgh.pa.us>
	<CA+TgmobKTMoRzaJ5iAUiHhta-qvi9eYgqC_fvs4m7JznFfhh5g@mail.gmail.com>
	<4668.1374603872@sss.pgh.pa.us>
	<CA+TgmoZEw3U2sNY7Ry5mO6wMxLmqaxyjxdiYhMSAA2W-UkTH8g@mail.gmail.com>
	<5175.1374605629@sss.pgh.pa.us>
	<CA+TgmoYrnryX2NHrGMXcz-casMBh-Jdnb3nTjLMHFtSwH1Sq7w@mail.gmail.com>
	<13646.1374842978@sss.pgh.pa.us>
	<CA+TgmobJ+vGoLdc00_4K0aWMpVgW0n2zd1SWG73MdkGApV_BgA@mail.gmail.com>
	<14297.1374844687@sss.pgh.pa.us>
	<CA+TgmoZfnK9zgK2YfrCLYaR0izo5qQb6C5fr1GP7QfPPNhZznA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Jul 26, 2013 at 9:18 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Robert Haas <robertmhaas@gmail.com> writes:
>>> Well, that's still used in _bt_check_unique, unique_key_recheck
>>> (trigger function to do a deferred uniqueness check), RI_FKey_check,
>>> and rather extensively by sepgsql.  I don't really have much desire to
>>> do the work to get rid of it, though.

>> Hm.  I agree the first three may be all right, but I can't help
>> suspecting that sepgsql is doing the wrong thing here.

> sepgsql is using SnapshotSelf to find the old version of a tuple that
> was updated by the core code just before.

Oh.  OK, then it reduces to the same case as the other three, ie we're
looking at tuples we know to be update-locked.

> [ interesting ruminations snipped ]

Yeah, removing SnapshotNow catalog access certainly opens the doors
for a lot of new thinking.

			regards, tom lane


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



view thread (44+ messages)  latest in thread

Message-ID: <15345.1374847846@sss.pgh.pa.us>
Permalink:  ../15345.1374847846@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15345.1374847846@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-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: getting rid of SnapshotNow
  In-Reply-To: <15345.1374847846@sss.pgh.pa.us>
  References: <CA+TgmoaLeu7wKtfPA0v=iQNMKOJZqg4TZf1Gyxn=7mbwa=Mxag@mail.gmail.com> <CA+TgmoZ_q2KMkxZAoRxRHB7k1tOmjVjQgYt2JuA7=U7QZoLxNw@mail.gmail.com> <2812.1374596914@sss.pgh.pa.us> <CA+TgmobKTMoRzaJ5iAUiHhta-qvi9eYgqC_fvs4m7JznFfhh5g@mail.gmail.com> <4668.1374603872@sss.pgh.pa.us> <CA+TgmoZEw3U2sNY7Ry5mO6wMxLmqaxyjxdiYhMSAA2W-UkTH8g@mail.gmail.com> <5175.1374605629@sss.pgh.pa.us> <CA+TgmoYrnryX2NHrGMXcz-casMBh-Jdnb3nTjLMHFtSwH1Sq7w@mail.gmail.com> <13646.1374842978@sss.pgh.pa.us> <CA+TgmobJ+vGoLdc00_4K0aWMpVgW0n2zd1SWG73MdkGApV_BgA@mail.gmail.com> <14297.1374844687@sss.pgh.pa.us> <CA+TgmoZfnK9zgK2YfrCLYaR0izo5qQb6C5fr1GP7QfPPNhZznA@mail.gmail.com> <15345.1374847846@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