Re: pg_dump --comment?

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Re: pg_dump --comment?
Дата
Msg-id 6.1.1.1.0.20040529014930.053e0a48@203.8.195.10
обсуждение исходный текст
Ответ на Re: pg_dump --comment?  (Jon Jensen <jon@endpoint.com>)
Список pgsql-hackers
At 12:15 AM 29/05/2004, Jon Jensen wrote:
>However, I would like to see an option to include the timestamp if someone
>wants it.

The timestamp is already in the header for custom dumps. Have a look at the 
first few lines from a 'pg_restore -l'.

In terms of general comments, there is already a 'WARNING' type TOC entry 
for custom dumps. This emits a warning message when pg_restore is called.

A similar mechanism could be used to dump SQL comments. eg. new TOC type of 
'SQL_COMMENT' with a defn starting with '--' would work with old & new 
pg_dump versions. It might be a good idea to investigate the likely uses 
for these comments, since the TOC entries may be suppressed depending on 
whether they are deemed to be part of the schema or the data. Once the 
modes of use are defined, a better mechanism may become apparent.





----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                 |    --________--
PGP key available upon request,  |  /
and from pgp.mit.edu:11371       |/ 



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

Предыдущее
От: Marty Scholes
Дата:
Сообщение: Re: tablespaces and DB administration
Следующее
От: "Matthew T. O'Connor"
Дата:
Сообщение: Re: Win32, PITR, nested transactions, tablespaces