Re: [HACKERS] pg_dump issues

Поиск
Список
Период
Сортировка
От Дмитрий Воронин
Тема Re: [HACKERS] pg_dump issues
Дата
Msg-id 1999271501070187@web36o.yandex.ru
обсуждение исходный текст
Ответ на Re: [HACKERS] pg_dump issues  (Victor Drobny <v.drobny@postgrespro.ru>)
Список pgsql-hackers
Hello, 

25.07.2017, 11:17, "Victor Drobny" <v.drobny@postgrespro.ru>:
>
> Hello,
>
> Do you expect to have some flag like '--rename=test->test2'?

Yes, I do. 

> Will dump with test replaced by test2(of course only in related places)
> be valid dump in this case?

Yes, it will.

> What is the possible scenario for the renaming option? Is it doing to be
> dumping of the one schema only?
> Or it could be dump of database? In this case pg_dump should also
> support multiple rules for renaming.

pg_dump scans dumped objects and rename them by rules, that could be set by pg_dump argument line options.
As I now, pg_dump and pg_restore use the same functions, so, renaming mechanism can be integrated in pg_restore too.
pg_restore will scan dumped objects and rename them by rules.

In future, rules could be applied on all database objects.

>
> Thank you for attention!
>
> --
> ------
> Victor Drobny
> Postgres Professional: http://www.postgrespro.com
> The Russian Postgres Company

-- 
Best regards, Dmitry Voronin



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

Предыдущее
От: ilmari@ilmari.org (Dagfinn Ilmari Mannsåker)
Дата:
Сообщение: Re: [HACKERS] proposal: psql: check env variable PSQL_PAGER
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Change in "policy" on dump ordering?