Re: make LockRelation use top transaction ID - Mailing list pgsql-hackers

From Tom Lane
Subject Re: make LockRelation use top transaction ID
Date
Msg-id 19662.1090590545@sss.pgh.pa.us
Whole thread Raw
In response to make LockRelation use top transaction ID  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: make LockRelation use top transaction ID  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-hackers
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> I just figured that if we let LockRelation use GetCurrentTransactionId()
> then the wrong thing happens if we let large objects survive
> subtransaction commit/abort.

> So I have changed it to use GetTopTransactionId() instead.  Is that OK
> with everybody?

No, at least not if you made that a global change.  Doing it that way
will mean that a failed subtransaction will not release its locks, no?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Dennis Bjorklund
Date:
Subject: Re: Wrong index choosen?
Next
From: Tom Lane
Date:
Subject: Re: Wrong index choosen?