Re: Why does pg_dump set default_with_oids to true?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why does pg_dump set default_with_oids to true?
Дата
Msg-id 15045.1256587916@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why does pg_dump set default_with_oids to true?  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Why does pg_dump set default_with_oids to true?
Список pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Kynn Jones escribi�:
>> The documentation deprecates setting this variable to true.  Why does
>> pg_dump do it?

> To dump tables that were created WITH OIDS.

What is deprecated is the use of the WITH OIDS feature, not the variable
;-).  But it is not pg_dump's charter to enforce that deprecation.

Maybe what you are asking is why it uses SET default_with_oids rather
than attaching WITH OIDS to the CREATE TABLE commands.  That was done
as a compatibility measure so that the dump files would still be
readable by PG versions that didn't understand WITH OIDS --- they'd
reject the SET commands but still accept the CREATE TABLE commands.
By the same token the files are a shade more portable to other DBMSes
than they would be with WITH OIDS clauses.  Neither of these arguments
is hugely compelling, perhaps, but avoiding the use of a variable isn't
very compelling either ...

            regards, tom lane

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Logging statements with errors in PostgreSQL 8.1
Следующее
От: Dave Page
Дата:
Сообщение: Re: [ANNOUNCE] [pgeu-general] PGDay.EU 2009 - approaching fast!