RE: Re: Buffer access rules, and a probable bug

Поиск
Список
Период
Сортировка
От Mikheev, Vadim
Тема RE: Re: Buffer access rules, and a probable bug
Дата
Msg-id 3705826352029646A3E91C53F7189E320166A9@sectorbase2.sectorbase.com
обсуждение исходный текст
Ответ на Buffer access rules, and a probable bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Re: Buffer access rules, and a probable bug  (Tom Lane <tgl@sss.pgh.pa.us>)
RE: Re: Buffer access rules, and a probable bug  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
Список pgsql-hackers
> On further thought, btbuild is not that badly broken at the moment,
> because CREATE INDEX acquires ShareLock on the relation, so
> there can be no concurrent writers at the page level. Still, it
> seems like it'd be a good idea to do "LockBuffer(buffer,
BUFFER_LOCK_SHARE)"
> here, and probably also to invoke HeapTupleSatisfiesNow() via the
> HeapTupleSatisfies() macro so that infomask update is checked for.
> Vadim, what do you think?

Looks like there is no drawback in locking buffer so let's lock it.

Vadim


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: selecting from cursor
Следующее
От: Joe Brenner
Дата:
Сообщение: [OT] Any major users of postgresql?