Re: tablespace and sequences? - Mailing list pgsql-hackers

From Philip Warner
Subject Re: tablespace and sequences?
Date
Msg-id 6.1.1.1.0.20040820124212.04276568@203.8.195.10
Whole thread Raw
In response to Re: tablespace and sequences?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: tablespace and sequences?
List 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 by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: All three packages ...
Next
From: Alvaro Herrera
Date:
Subject: Re: postgres uptime