Re: Possible bug in PostgreSQL 9.2 stable: TwoPhaseGetDummyBackendId() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Possible bug in PostgreSQL 9.2 stable: TwoPhaseGetDummyBackendId()
Date
Msg-id 11467.1344438519@sss.pgh.pa.us
Whole thread Raw
In response to Possible bug in PostgreSQL 9.2 stable: TwoPhaseGetDummyBackendId()  (Robert Ross <rross@translattice.com>)
List pgsql-hackers
Robert Ross <rross@translattice.com> writes:
> I have looked at the Postgres 9.2 stable and Postgres 9.2 beta 3 git  
> archives and this bug still appears to be present.

> TwoPhaseGetDummyProc returns a PGPROC*. In 9.0, it was safe for  
> TwoPhaseGetDummyBackendId() to cast this to a GlobalTransaction  
> because the GlobalTransactionData structure's first element was always  
> a PGPROC structure. However, in 9.2 this is no longer true.

Clearly an oversight in commit ed0b409d22346b1b027a4c2099ca66984d94b6dd
:-(.  Will fix, thanks for the report!
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug in libpq implentation and omission in documentation?
Next
From: Merlin Moncure
Date:
Subject: Re: WIP patch for LATERAL subqueries