Re: tablespace and sequences?

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Re: tablespace and sequences?
Дата
Msg-id 6.1.1.1.0.20040820124212.04276568@203.8.195.10
обсуждение исходный текст
Ответ на Re: tablespace and sequences?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: tablespace and sequences?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
At 12:37 PM 20/08/2004, Bruce Momjian wrote:
>But that doesn't fix ascii dumps loaded via psql.

It does; the ascii dump file is generated by exactly the same technique as 
pg_restore.

Internally, pg_dump builds a TOC, then calls RestoreArchive to dump the 
text. It was designed this way for a bunch of reasons, and one was to avoid 
too much difference between the output of each format. Which is why it is 
very unlikely that "pg_dump -Fc | pg_restore" would produce output 
substantially different from that of "pg_dump".

So, as long as pg_dump puts the CREATE TABLE and ALTER TABLE in different 
commands, they will appear as such in the text file.






----------------------------------------------------------------
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 по дате отправления:

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: All three packages ...
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: postgres uptime