Re: tablespace and sequences?

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: tablespace and sequences?
Date: 2004-08-20 02:47:44
Message-ID: 6.1.1.1.0.20040820124212.04276568@203.8.195.10
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-hackers pgsql-hackers-win32

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 |/

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Tom Lane 2004-08-20 03:09:11 Re: tablespace and sequences?
Previous Message Bruce Momjian 2004-08-20 02:37:57 Re: tablespace and sequences?

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2004-08-20 02:50:56 Re: postgres uptime
Previous Message Marc G. Fournier 2004-08-20 02:46:15 Re: All three packages ...

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Tom Lane 2004-08-20 03:09:11 Re: tablespace and sequences?
Previous Message Bruce Momjian 2004-08-20 02:37:57 Re: tablespace and sequences?