Re: adding new pages bulky way

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: adding new pages bulky way
Дата
Msg-id 20050607004230.GC13973@surnet.cl
обсуждение исходный текст
Ответ на adding new pages bulky way  ("Victor Y. Yegorov" <viy@mits.lv>)
Список pgsql-hackers
On Mon, Jun 06, 2005 at 10:59:04PM +0300, Victor Y. Yegorov wrote:

> The question is: allocating pages this way is really ugly, I understand. Is
> there some API that would allow allocating N pages in the bulk way?
> Maybe this is a know problem, that has been already solved before?
> Any other ideas?

I don't understand your question.  What's the problem with holding the
extend lock for the index relation while you extend it?  Certainly you
want only a single process creating a new extent in the index, right?

I guess the question is when are the extents created, and what
concurrency do you expect from that operation.

-- 
Alvaro Herrera (<alvherre[a]surnet.cl>)
"La naturaleza, tan frágil, tan expuesta a la muerte... y tan viva"


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