Re: adding new pages bulky way - Mailing list pgsql-hackers

From Victor Y. Yegorov
Subject Re: adding new pages bulky way
Date
Msg-id 20050607215028.GC9424@mits.lv
Whole thread Raw
In response to Re: adding new pages bulky way  (Alvaro Herrera <alvherre@surnet.cl>)
Responses Re: adding new pages bulky way
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Proposed toast info extraction function for disaster recovery
Next
From: Simon Riggs
Date:
Subject: Re: I am up-to-date