pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Forcing pg_dump NOT to use "INSERT..."
4+ messages / 4 participants
[nested] [flat]

* Forcing pg_dump NOT to use "INSERT..."
@ 2003-11-04 14:41 David F. Skoll <dfs@roaringpenguin.com>
  2003-11-04 15:03 ` Re: Forcing pg_dump NOT to use "INSERT..." Jaskier <jaskierbard@poczta.onet.pl>
  2003-11-04 15:47 ` Re: Forcing pg_dump NOT to use "INSERT..." Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 4+ messages in thread

From: David F. Skoll @ 2003-11-04 14:41 UTC (permalink / raw)
  To: pgsql-admin

Hi,

On Red Hat 9, when I run the pg_dump command, it uses the
"INSERT ...." dump format.  I thought it only did that if you used the
--inserts option.  How do I force it NOT to use that format?

Regards,

David.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Forcing pg_dump NOT to use "INSERT..."
  2003-11-04 14:41 Forcing pg_dump NOT to use "INSERT..." David F. Skoll <dfs@roaringpenguin.com>
@ 2003-11-04 15:03 ` Jaskier <jaskierbard@poczta.onet.pl>
  1 sibling, 0 replies; 4+ messages in thread

From: Jaskier @ 2003-11-04 15:03 UTC (permalink / raw)
  To: 'David F. Skoll' <dfs@roaringpenguin.com>; pgsql-admin


Hi,

Yes that's right

But You can avoid it by adding 

'-s, --schema-only' it will copy only structure without data

Regards,

Andrzej Schulz
Galileo-Selidor


-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of David F. Skoll
Sent: Tuesday, November 04, 2003 3:42 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Forcing pg_dump NOT to use "INSERT..."

Hi,

On Red Hat 9, when I run the pg_dump command, it uses the
"INSERT ...." dump format.  I thought it only did that if you used the
--inserts option.  How do I force it NOT to use that format?

Regards,

David.

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if
your
      joining column's datatypes do not match





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Forcing pg_dump NOT to use "INSERT..."
  2003-11-04 14:41 Forcing pg_dump NOT to use "INSERT..." David F. Skoll <dfs@roaringpenguin.com>
@ 2003-11-04 15:47 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 4+ messages in thread

From: Tom Lane @ 2003-11-04 15:47 UTC (permalink / raw)
  To: David F. Skoll <dfs@roaringpenguin.com>; +Cc: pgsql-admin

"David F. Skoll" <dfs@roaringpenguin.com> writes:
> On Red Hat 9, when I run the pg_dump command, it uses the
> "INSERT ...." dump format.  I thought it only did that if you used the
> --inserts option.  How do I force it NOT to use that format?

This is extremely hard to believe.  I can see no way that pg_dump will
do that unless you explicitly ask for it (-d or -D switch, or one of the
long variants of same).

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Forcing pg_dump NOT to use "INSERT..."
@ 2003-11-05 12:23 Stef <svb@ucs.co.za>
  0 siblings, 0 replies; 4+ messages in thread

From: Stef @ 2003-11-05 12:23 UTC (permalink / raw)
  To: pgsql-admin


=> This is extremely hard to believe.  I can see no way that pg_dump will
=> do that unless you explicitly ask for it (-d or -D switch, or one of the
=> long variants of same).

I know of a lot of people that confuses the -d switch as an option
indicating the database name to follow. It is also usually very hard
to convince people that they dumped INSERT statements in stead
of COPY once you sit with a restore that takes a little longer than
usual...

Attachments:

  00000003.mimetmp (application/pgp-signature, 190B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2003-11-05 12:23 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-04 14:41 Forcing pg_dump NOT to use "INSERT..." David F. Skoll <dfs@roaringpenguin.com>
2003-11-04 15:03 ` Jaskier <jaskierbard@poczta.onet.pl>
2003-11-04 15:47 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-11-05 12:23 Re: Forcing pg_dump NOT to use "INSERT..." Stef <svb@ucs.co.za>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox