Re: Enhancement to pg_dump

From: Richard Huxton <dev(at)archonet(dot)com>
To: Rob Kirkbride <rob(dot)kirkbride(at)gmail(dot)com>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Enhancement to pg_dump
Date: 2008-11-26 09:21:49
Message-ID: 492D152D.6020205@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rob Kirkbride wrote:
> I've introduced a --delete-not-drop option which simply does a DELETE FROM %
> rather than 'DROP and then CREATE'.

Beware foreign-keys slowing you - TRUNCATE all relevant tables should be
the fastest method if possible.

> I hope this sounds sensible and I haven't missed something - I'm still
> learning!

Have you considered restoring to a completely different database
(report1/report2) and just switching between them?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hiroshi Inoue 2008-11-26 09:29:43 Re: [PATCHES] Solve a problem of LC_TIME of windows.
Previous Message Heikki Linnakangas 2008-11-26 09:09:26 Re: Windowing Function Patch Review -> Standard Conformance