Re: Idea for cleaner representation of snapshots - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Idea for cleaner representation of snapshots
Date
Msg-id 24712.1174770905@sss.pgh.pa.us
Whole thread Raw
In response to Re: Idea for cleaner representation of snapshots  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> On Sat, Mar 24, 2007 at 02:00:30PM -0400, Tom Lane wrote:
>> HeapTupleSatisfiesVisibility reduces to something like
>> ((*(snapshot)->satisfies) ((tuple)->t_data, snapshot, buffer))

> Sounds like a winner. Essentially snapshots becomes objects that have
> methods you can use to interact with them.

Right, it's poor man's C++ ;-).

I've just finished coding the patch and it looks good ... still testing
though.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Idea for cleaner representation of snapshots
Next
From: Jim Nasby
Date:
Subject: Vacation