Re: Make pg_dump suppress COMMENT ON SCHEMA public ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Make pg_dump suppress COMMENT ON SCHEMA public ?
Дата
Msg-id 5931.1200244421@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Make pg_dump suppress COMMENT ON SCHEMA public ?  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Make pg_dump suppress COMMENT ON SCHEMA public ?  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> Could we dump it when it's non-default only? That way the people that 
> *have* set a custom comment on it will still get it restored, just a 
> failure in this case. The majority of people who *haven't* set a comment 
> will not have the problem at all.

The patch seems ugly enough without wiring in knowledge of what the
standard comment is :-(

We don't dump non-default comments on other system objects either,
so I don't think it's out of line to suppress the one on schema public.

Perhaps at some point we should add something to pg_description to allow
distinguishing user-supplied comments from built-in ones, and then dump
any user-supplied comment on any system object.  But not today ...
        regards, tom lane


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

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: Postgresql Materialized views
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Make pg_dump suppress COMMENT ON SCHEMA public ?