pg.ddx.io  pgsql-admin@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: Tatsuo Ishii <ishii@postgresql.org>
Cc: mangoo@wpkg.org
Cc: scott.marlowe@gmail.com
Cc: t-ishii@sra.co.jp
Cc: Kevin.Grittner@wicourts.gov
Cc: pgsql-hackers@postgresql.org
Subject: Re: pgpool versus sequences
Date: Wed, 01 Jun 2011 18:53:50 -0400
Message-ID: <27741.1306968830@sss.pgh.pa.us> (raw)
In-Reply-To: <BANLkTikCRTeZ_g-rDay4RukWOY3Q7irCnQ@mail.gmail.com>
References: <16063.1306811813@sss.pgh.pa.us>
	<4DE4A652.2040301@wpkg.org>
	<25524.1306848814@sss.pgh.pa.us>
	<20110601.001430.1098605953350881110.t-ishii@sraoss.co.jp>
	<26909.1306965898@sss.pgh.pa.us>
	<BANLkTikCRTeZ_g-rDay4RukWOY3Q7irCnQ@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Jun 1, 2011 at 6:04 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> * Does anyone want to argue for not forbidding SELECT FOR UPDATE on
>> toast tables?

> Maybe.  How hard would it be to fix that so it doesn't blow up?  What
> I don't like about the proposed solution is that it will cause very
> user-visible breakage as a result of a minor release upgrade, for
> anyone using pgpool, which is a lot of people; unless pgpool is
> upgraded to a sufficiently new version first.

I think you are answering a different question than what I asked.
I was asking about the not-strictly-necessary forbidding of SFU on
toast tables, not sequences.

If we're going to try to retroactively make the world safe for pgpool
doing what it's doing, the only way is to start including sequences in
the set of objects that are vacuumed and included in
relfrozenxid/datfrozenxid bookkeeping.  Which is a lot more overhead
than I think is justified to clean up after a bad decision.  I'm not
even terribly sure that it would work, since nobody has ever looked at
what would happen if nextval executed concurrently with vacuum doing
something to a sequence.  The relfrozenxid logic might have some
difficulty with sequences that have zero relfrozenxid to start with,
too.

Please note also that what pgpool users have got right now is a time
bomb, which is not better than immediately-visible breakage.  I would
prefer to try to get this change out ahead of widespread adoption of the
broken pgpool version.

			regards, tom lane



view thread (20+ messages)  latest in thread

Message-ID: <27741.1306968830@sss.pgh.pa.us>
Permalink:  ../27741.1306968830@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27741.1306968830@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, ishii@postgresql.org, mangoo@wpkg.org, scott.marlowe@gmail.com, t-ishii@sra.co.jp, Kevin.Grittner@wicourts.gov, pgsql-hackers@postgresql.org
  Subject: Re: pgpool versus sequences
  In-Reply-To: <27741.1306968830@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