Re: lcr v5 - introduction of InvalidCommandId

Поиск
Список
Период
Сортировка
Искать
От
Andres Freund
Тема
Re: lcr v5 - introduction of InvalidCommandId
Дата
Msg-id
20130905190244.GB490889@alap2.anarazel.de
Ответ на
Список
Дерево обсуждения
logical changeset generation v5 Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Steve Singer <steve@ssinger.info>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Steve Singer <steve@ssinger.info>
Re: changeset generation v5-01 - Patches & git tree Alvaro Herrera <alvherre@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Alvaro Herrera <alvherre@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Tom Lane <tgl@sss.pgh.pa.us>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Robert Haas <robertmhaas@gmail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Peter Eisentraut <peter_e@gmx.net>
Re: changeset generation v5-01 - Patches & git tree Tom Lane <tgl@sss.pgh.pa.us>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Robert Haas <robertmhaas@gmail.com>
Re: changeset generation v5-01 - Patches & git tree Alvaro Herrera <alvherre@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Alvaro Herrera <alvherre@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Tom Lane <tgl@sss.pgh.pa.us>
Re: changeset generation v5-01 - Patches & git tree Robert Haas <robertmhaas@gmail.com>
Re: changeset generation v5-01 - Patches & git tree Tom Lane <tgl@sss.pgh.pa.us>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Alvaro Herrera <alvherre@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Tom Lane <tgl@sss.pgh.pa.us>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Tom Lane <tgl@sss.pgh.pa.us>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Robert Haas <robertmhaas@gmail.com>
Re: changeset generation v5-01 - Patches & git tree Robert Haas <robertmhaas@gmail.com>
Re: changeset generation v5-01 - Patches & git tree Simon Riggs <simon@2ndQuadrant.com>
Re: changeset generation v5-01 - Patches & git tree Robert Haas <robertmhaas@gmail.com>
Re: changeset generation v5-01 - Patches & git tree Simon Riggs <simon@2ndQuadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Tom Lane <tgl@sss.pgh.pa.us>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Kevin Grittner <kgrittn@ymail.com>
Re: changeset generation v5-01 - Patches & git tree Alvaro Herrera <alvherre@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Steve Singer <steve@ssinger.info>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: changeset generation v5-01 - Patches & git tree Robert Haas <robertmhaas@gmail.com>
Re: changeset generation v5-01 - Patches & git tree Andres Freund <andres@2ndquadrant.com>
Re: logical changeset generation v5 Andres Freund <andres@2ndquadrant.com>
Re: logical changeset generation v5 Robert Haas <robertmhaas@gmail.com>
Re: logical changeset generation v5 Andres Freund <andres@2ndquadrant.com>
Re: logical changeset generation v5 Robert Haas <robertmhaas@gmail.com>
Re: logical changeset generation v5 Andres Freund <andres@2ndquadrant.com>
Re: logical changeset generation v5 Robert Haas <robertmhaas@gmail.com>
Re: logical changeset generation v5 Andres Freund <andres@2ndquadrant.com>
Re: logical changeset generation v5 Robert Haas <robertmhaas@gmail.com>
Re: logical changeset generation v5 Andres Freund <andres@2ndquadrant.com>
Re: lcr v5 - introduction of InvalidCommandId Andres Freund <andres@2ndquadrant.com>
Re: lcr v5 - introduction of InvalidCommandId Robert Haas <robertmhaas@gmail.com>
Re: lcr v5 - introduction of InvalidCommandId Andres Freund <andres@2ndquadrant.com>
Re: lcr v5 - introduction of InvalidCommandId Robert Haas <robertmhaas@gmail.com>
Re: lcr v5 - introduction of InvalidCommandId Tom Lane <tgl@sss.pgh.pa.us>
Re: lcr v5 - introduction of InvalidCommandId Andres Freund <andres@2ndquadrant.com>
Re: lcr v5 - introduction of InvalidCommandId Tom Lane <tgl@sss.pgh.pa.us>
Re: lcr v5 - introduction of InvalidCommandId Andres Freund <andres@2ndquadrant.com>
Re: lcr v5 - introduction of InvalidCommandId Andres Freund <andres@2ndquadrant.com>
Re: lcr v5 - introduction of InvalidCommandId Robert Haas <robertmhaas@gmail.com>
Re: lcr v5 - introduction of InvalidCommandId Tom Lane <tgl@sss.pgh.pa.us>
Re: lcr v5 - introduction of InvalidCommandId Andres Freund <andres@2ndquadrant.com>
Re: lcr v5 - introduction of InvalidCommandId Tom Lane <tgl@sss.pgh.pa.us>
Re: lcr v5 - introduction of InvalidCommandId Peter Geoghegan <pg@heroku.com>
Re: logical changeset generation v5 Andres Freund <andres@2ndquadrant.com>
Re: lcr v5 - primary/candidate key in relcache Andres Freund <andres@2ndquadrant.com>
Re: lcr v5 - primary/candidate key in relcache Kevin Grittner <kgrittn@ymail.com>
On 2013-09-05 14:37:01 -0400, Tom Lane wrote:
> Andres Freund  writes:
> > On 2013-09-05 14:21:33 -0400, Tom Lane wrote:
> >> Ideally I'd have made InvalidCommandId = 0 and FirstCommandId = 1,
> >> but I suppose we can't have that without an on-disk compatibility break.
> 
> > The patch actually does change it exactly that way.
> 
> Oh.  I hadn't looked at the patch, but I had (mis)read what Robert said
> to think that you were proposing introducing InvalidCommandId = 0xFFFFFFFF
> while leaving FirstCommandId alone.  That would make more sense to me as
> (1) it doesn't change the interpretation of anything that's (likely to be)
> on disk; (2) it allows the check for overflow in CommandCounterIncrement
> to not involve recovering from an *actual* overflow.  With the horsing
> around we've been seeing from the gcc boys lately

Ok, I can do it that way. LCR obviously shouldn't care.

> I don't have a warm
> feeling about whether they won't break that test someday on the grounds
> that "overflow is undefined behavior".

Unsigned overflow is pretty strictly defined, so I don't see much danger
there. Also, we'd feel the pain pretty definitely with xids...

Greetings,

Andres Freund

-- Andres Freund	                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-hackers по дате отправления
От: Kohei KaiGai
Дата:
Сообщение: Custom Plan node
От: Andres Freund
Дата:
Сообщение: Small catcache optimization
FAQ