| От | Tom Lane |
|---|---|
| Тема | Re: Concurrence GiST |
| Дата | |
| Msg-id | 23453.1072801555@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Concurrence GiST (Teodor Sigaev <teodor@sigaev.ru>) |
| Список | pgsql-hackers |
Teodor Sigaev <teodor@sigaev.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
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера