Re: SSI patch renumbered existing 2PC resource managers??

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <drkp(at)csail(dot)mit(dot)edu>, "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: SSI patch renumbered existing 2PC resource managers??
Date: 2011-06-13 19:15:52
Message-ID: 4DF61B98020000250003E550@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> What was the rationale for changing the assignments of existing
> 2PC IDs? So far as I can tell, that breaks pg_upgrade (if there
> are any open prepared transactions) for no redeeming social
> benefit. Is there a reason why TWOPHASE_RM_PREDICATELOCK_ID has
> to be 2 and not at the end?

I'm sure that Dan will jump in if this guess is wrong, but since the
predicate lock code is largely derived from the heavyweight locking
code, it probably seemed to have a minor cosmetic benefit to put it
adjacent to that. It didn't occur to me when the SSI 2PC code went
in, but I can see the problem now that you point it out. The new
entry should be moved to the end for compatibility. Would you like
me to submit a patch to fix this, or should I stay out of your way?

-Kevin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-06-13 19:22:19 Re: SSI patch renumbered existing 2PC resource managers??
Previous Message Alexander Korotkov 2011-06-13 19:10:36 Re: WIP: collect frequency statistics for arrays