Re: table-level and row-level locks. - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: table-level and row-level locks.
Date
Msg-id 20030907235239.GA3797@dcc.uchile.cl
Whole thread Raw
In response to Re: table-level and row-level locks.  ("Jenny -" <nat_lazy@hotmail.com>)
List pgsql-hackers
On Sun, Sep 07, 2003 at 04:07:42PM -0700, Jenny - wrote:
> >A row lock is represented by storing the locking transaction's ID in
> >xmax and setting the HEAP_MARKED_FOR_UPDATE infomask bit.  The bit is
> >needed to distinguish this from the case where the transaction is
> >deleting the tuple.
> 
> where is 'HEAP_MARKED_FOR_UPDATE infomask bit' found ?

Have you ever heard of the "grep" *nix utility?  It's quite useful.

Anyway, t_infomask is part of a struct called HeapTupleHeaderData,
defined somewhere in src/include/access/htup.h

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
You liked Linux a lot when he was just the gawky kid from down the block
mowing your lawn or shoveling the snow. But now that he wants to date
your daughter, you're not so sure he measures up. (Larry Greenemeier)


pgsql-hackers by date:

Previous
From: Rod Taylor
Date:
Subject: Re: [GENERAL] Needed function IF(expr, expr, expr)
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Needed function IF(expr, expr, expr)