Re: pgpool versus sequences

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: robertmhaas(at)gmail(dot)com, mangoo(at)wpkg(dot)org, scott(dot)marlowe(at)gmail(dot)com, Kevin(dot)Grittner(at)wicourts(dot)gov, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pgpool versus sequences
Date: 2011-06-01 23:08:16
Message-ID: 20110602.080816.460114267356667394.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

> 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.

What pgpool really wanted to do was locking sequence tables, not
locking rows in sequences. I wonder why the former is not allowed.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tatsuo Ishii 2011-06-01 23:26:39 Re: pgpool versus sequences
Previous Message Tom Lane 2011-06-01 22:53:50 Re: pgpool versus sequences

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2011-06-01 23:26:39 Re: pgpool versus sequences
Previous Message Tom Lane 2011-06-01 23:07:07 Re: Bad UI design: pg_ctl and data_directory