Re: Schema-qualified statements in pg_dump output

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Schema-qualified statements in pg_dump output
Дата
Msg-id 782.1216748106@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Schema-qualified statements in pg_dump output  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Schema-qualified statements in pg_dump output  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> No need to specify the name at pg_dump time.
> For text files, just use an option to specify whether we change the
> actual schema name and replace it with the text :PGDUMPSCHEMA.

pg_restore is in even worse position than pg_dump to make this happen;
it would not be able to do anything that's smarter than a sed-like
substitution.

I doubt that the original idea can be made to work, but this
"improvement" will entirely guarantee failure.

(Note: the problem is not so much with the names of the objects you're
directly creating, as with object cross-references that're embedded in
the DDL.)
        regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Postgres-R: primary key patches
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] GIN improvements