Re: pg_dump and pg_dumpall in real life

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: pg_dump and pg_dumpall in real life
Дата
Msg-id 5280E9A3.4010304@dunslane.net
обсуждение исходный текст
Ответ на pg_dump and pg_dumpall in real life  (Rafael Martinez <r.m.guerrero@usit.uio.no>)
Ответы Re: pg_dump and pg_dumpall in real life  (David Johnston <polobo@yahoo.com>)
Список pgsql-hackers
On 11/11/2013 08:59 AM, Rafael Martinez wrote:
>
> * It would be great to be able to tell pg_restore that user1 in the
> dump will became user2 in the restored/cloned database. The same for
> the name of the database.

A general ability to rename things would be good. In particular, 
restoring schema x into schema y or table x into table y would be very 
useful, especially if you need to be able to compare old with new.

Unfortunately, this would involve a fairly significant change in the 
design of pg_dump / pg_restore. The stored SQL is currently fairly 
opaque, and a renaming scheme would probably need to implement instead 
some sort of placeholder mechanism. That would mean a LOT of work.


cheers

andrew





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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Datatyp of a column
Следующее
От: "Colin 't Hart"
Дата:
Сообщение: Re: Execute query with EXCEPT, INTERSECT as anti-join, join?