Re: adding new pages bulky way

Поиск
Список
Период
Сортировка
От Victor Y. Yegorov
Тема Re: adding new pages bulky way
Дата
Msg-id 20050607215028.GC9424@mits.lv
обсуждение исходный текст
Ответ на Re: adding new pages bulky way  (Alvaro Herrera <alvherre@surnet.cl>)
Ответы Re: adding new pages bulky way  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
* Alvaro Herrera <alvherre@surnet.cl> [08.06.2005 00:39]:
> Huh, why?  You need to grab the relation extension block
> (LockRelationForExtension in CVS tip).

Really? Didn't knew that. 

Consider:
1) I add 2 pages to the newly-created relation  using P_NEW as BlockNumber;
2) then I do LockRelationForExtension; ReadBuffer(135) and  UnockRelationForExtension.

What BlockNumber will be assigned to the buffer, if I call
ReadBuffer(P_NEW) now? 136?


BTW, is it OK to say "BlockNumber is assigned to buffer"?


-- 

Victor Y. Yegorov


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Proposed toast info extraction function for disaster recovery
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: I am up-to-date