Re: pg_dump DROP commands and implicit search paths

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump DROP commands and implicit search paths
Дата
Msg-id 21517.1021336967@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_dump DROP commands and implicit search paths  (nconway@klamath.dyndns.org (Neil Conway))
Ответы Re: pg_dump DROP commands and implicit search paths  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-hackers
nconway@klamath.dyndns.org (Neil Conway) writes:
> I'd prefer this method -- IMHO the readibility of dump scripts isn't
> a top priority (or if it is, we're not doing very well in that regard
> any). I think dump scripts should be as verbose as is necessary to
> ensure that they can't be misinterpreted.

Perhaps instead of "readability" I should have said "editability".
The thought that is lurking behind this is that you might want to
retarget a dump script to be reloaded in some other schema.  If the
dump is cluttered with umpteen thousand copies of the schema name
that's going to be difficult.

Ideally I'd like the dumped object definitions to contain *no* explicit
references to their containing schema.  This would allow, for example,
a pg_restore mode that loads the objects into a different schema.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump DROP commands and implicit search paths
Следующее
От: "Rod Taylor"
Дата:
Сообщение: Re: pg_dump DROP commands and implicit search paths