From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
Cc: | Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Concurrence GiST |
Date: | 2003-12-30 16:25:55 |
Message-ID: | 23453.1072801555@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Teodor Sigaev <teodor(at)sigaev(dot)ru> writes:
> I can use NSN (node sequence number) and I find recommendation to use
> LSN (WAL log sequence number) as NSN. NSN must be stored in page and I
> found that page (PageHeaderData struct) already has XLogRecPtr for
> storing LSN. My question is: who is manage this field? Is it filled
> automatically or I should write code to manage it?
It must be set just after you emit a WAL record for any action affecting
the page. Take a look at the btree code for WAL (look for XLogInsert
and PageSetLSN calls). Also I'd suggest reading the WAL section of
access/nbtree/README.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-12-30 16:29:04 | Re: sticky sequence |
Previous Message | Bruno Wolff III | 2003-12-30 16:06:07 | Re: Is my MySQL Gaining ? |