Re: PostgreSQL sourcecode - Mailing list pgsql-hackers

From Nicolas Barbier
Subject Re: PostgreSQL sourcecode
Date
Msg-id AANLkTimqyATogaRns01JmsqVFNyh+p2Eq7VCMhKxHoM5@mail.gmail.com
Whole thread Raw
In response to Re: PostgreSQL sourcecode  (aaronenabs <aaronenabs@btconnect.com>)
List pgsql-hackers
2011/3/30 aaronenabs <aaronenabs@btconnect.com>:

> Can you alos advise how i change the the HeapTupleSatisfiesVisibility() to
> true within the source code:

[..]

> #define HeapTupleSatisfiesVisibility(tuple, snapshot, buffer) \
>        ((*(snapshot)->satisfies) ((tuple)->t_data, snapshot, buffer))

As someone totally not familiar with the PostgreSQL source code, I
would guess something like:

#define HeapTupleSatisfiesVisibility(tuple, snapshot, buffer) (1)

You might want to check the return type of the "satisfies" function
pointer though.

Nicolas


pgsql-hackers by date:

Previous
From: aaronenabs
Date:
Subject: Re: PostgreSQL sourcecode
Next
From: Heikki Linnakangas
Date:
Subject: Re: crash-safe visibility map, take four