Re: Possible bug in PostgreSQL 9.2 stable: TwoPhaseGetDummyBackendId()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Ross <rross(at)translattice(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Possible bug in PostgreSQL 9.2 stable: TwoPhaseGetDummyBackendId()
Date: 2012-08-08 15:08:39
Message-ID: 11467.1344438519@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Ross <rross(at)translattice(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2012-08-08 15:30:54 Re: WIP patch for LATERAL subqueries
Previous Message Tom Lane 2012-08-08 14:35:24 Re: Bug in libpq implentation and omission in documentation?