Re: [PATCHES] Lazy xid assignment V4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, Andrew Dunstan <andrew(at)dunslane(dot)net>, "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
Subject: Re: [PATCHES] Lazy xid assignment V4
Date: 2007-09-05 22:40:26
Message-ID: 7719.1189032026@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Robert Treat <xzilla(at)users(dot)sourceforge(dot)net> writes:
> I'm trying to decide how reasonable the use case is. We have transactions that
> run several hours long, often touching a number of tables, and I've used the
> transaction to get a list of all of the relations a given transaction is
> touching. This makes the above solution more annoying by far, but I don't do
> it often, and I think I generally use the pid to get that information anyway;
> if I used prepared transactions I'm sure I'd feel stronger about this.

I don't see why you wouldn't start using the VXID for this purpose?

>> Also, I still agree with Florian's earlier argument that we should
>> deliberately break any code that's depending on the transaction column.
>> Any such code is unlikely to be prepared for the column containing nulls.

> I don't buy this argument really only so far as the column can already be
> null, so apps already need a way to deal with that.

No, it was not possible for the XID column to be null before. Up to
now, if you didn't have an XID you weren't holding a lock.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Treat 2007-09-06 01:02:15 Re: [PATCHES] Lazy xid assignment V4
Previous Message Robert Treat 2007-09-05 22:35:31 Re: [PATCHES] Lazy xid assignment V4

Browse pgsql-patches by date

  From Date Subject
Next Message Gregory Stark 2007-09-05 22:57:45 Re: HOT patch - version 15
Previous Message Robert Treat 2007-09-05 22:35:31 Re: [PATCHES] Lazy xid assignment V4