Re: pg_dump

Поиск
Список
Период
Сортировка
От Дмитрий Воронин
Тема Re: pg_dump
Дата
Msg-id 665091446127502@web10o.yandex.ru
обсуждение исходный текст
Ответ на Re: pg_dump  (Noah Misch <noah@leadboat.com>)
Ответы Re: pg_dump  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>  It's a problem. See this recent discussion:
>  http://www.postgresql.org/message-id/flat/20150710115735.GH26521@alap3.anarazel.de

Postgresmen, we have a SQL function "current_database", which can be called by statement "SELECT CURRENT_CATALOG".

If we will use CURRENT_CATALOG keyword, we can update syntax of COMMENT statement:

COMMENT ON DATABASE CURRENT_CATALOG IS 'comment';

And pg_dump will create this line for database. What are you think about this idea? Later, I send a patch with it.

P.S. Maybe we can apply this mechanism for dumping SECURITY LABEL statetment.


-- 
Best regards, Dmitry Voronin



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql: add \pset true/false
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Support for N synchronous standby servers - take 2