Re: TODO Done. Superuser backend slot reservations

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: TODO Done. Superuser backend slot reservations
Дата
Msg-id 14081.1030334664@sss.pgh.pa.us
обсуждение исходный текст
Ответ на TODO Done. Superuser backend slot reservations  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Ответы Re: TODO Done. Superuser backend slot reservations  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Список pgsql-hackers
"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> +     if (!superuser() && MyBackendId > MaxBackends - ReservedBackends)
> +         elog(ERROR, "Normal user limit exceeded");

This coding is wrong on its face: the slot number you happen to find has
no relationship to the number of slots remaining free, except as an
existence proof that the number of slots free was > 0 before you took
one.

            regards, tom lane

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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: PostgreSQL 7.2.2 and docs
Следующее
От: Curt Sampson
Дата:
Сообщение: Re: Database Caching