Re: LockObject patch

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: LockObject patch
Дата
Msg-id 20041220205544.GB5287@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: LockObject patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
On Mon, Dec 20, 2004 at 03:52:57PM -0500, Bruce Momjian wrote:

> When we roll over OID's do we make sure we never return InvalidOid?

Yes.  From GetNewObjectId()

    /*
     * Check for wraparound of the OID counter.  We *must* not return 0
     * (InvalidOid); and as long as we have to check that, it seems a good
     * idea to skip over everything below BootstrapObjectIdData too. (This
     * basically just reduces the odds of OID collision right after a wrap
     * occurs.)  Note we are relying on unsigned comparison here.
     */

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Es filósofo el que disfruta con los enigmas" (G. Coli)

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: LockObject patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: LockObject patch