Re: session IDs

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: session IDs
Дата
Msg-id Pine.LNX.4.33.0402030914080.15293-100000@leary.csoft.net
обсуждение исходный текст
Ответ на session IDs  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
> >
> > Tom Lane wrote:
> >
> >> Andrew Dunstan <andrew@dunslane.net> writes:
> >>
> >>> I did think about using a cluster-wide sequence, if we can make such
> >>> a thing (might also be useful for system generated UIDs too).
> >>
> >> Not a good idea IMHO.  If you do that, then there will be no such thing
> >> as a purely read-only transaction, because *every* transaction will
> >> include a nextval() call.  That means even read-only transactions cannot
> >> commit till the disk spins.
> >>

A sequence could be used if it was created with a sufficiently large CACHE
value, so a read only transaction would only have to hit the disk if it
happened to be the one to hit an exhausted cache.

Kris Jurka



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: pg_restore bug in 7.4.1 ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] log session end - again