Re: erroneous restore into pg_catalog schema

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: erroneous restore into pg_catalog schema
Дата
Msg-id 8418.1368470147@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: erroneous restore into pg_catalog schema  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: erroneous restore into pg_catalog schema  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> I think we shouldn't check IsPostmasterEnvironment here but instead
> IsBootstrapProcessingMode() since we otherwise can generate oids below
> FirstNormalObjectId in --single mode.

That is, in fact, exactly what we want to do and must do during initdb.
If you change anything about this code you'll break the way the
post-bootstrap initdb steps assign OIDs.

(The comments about "wraparound" are slightly misleading, since those
code blocks also execute during the first OID assignment in normal
mode and the first one in post-bootstrap initdb processing, respectively.)
        regards, tom lane



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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: Parallel Sort
Следующее
От: Andres Freund
Дата:
Сообщение: Re: erroneous restore into pg_catalog schema