pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mark carew <markcarew@bigpond.com>
To: pgsql-admin@postgresql.org
Subject: Re: table dump
Date: Sat, 13 Apr 2002 17:45:03 +1000
Message-ID: <a98nqo$26d1$1@jupiter.hub.org> (raw)
References: <00a001c1dfd0$4818a1d0$de138f80@virginia.edu>

Hi Jodi,

    Its to stop the triggers firing when you restore the new database from
the dumped file.

     Imagine that the triggers have already done their work on other tables
when the data was first inserted or
    later changed.

     With pg_dump you are taking a snap shot that you would later wish
perhaps to restore.

    The foreign key, table and column constraints are not turned off because
their enforcement is still valid at         restore time. For example the
data may have mysteriously been damaged in the database or in the dump file
and you would thus need to know about this situation at restore time.

    The dumped file is thus copied back at restore time not inserted.

    Regards Mark Carew
    Brisbane Australia.





view thread (3+ messages)

Message-ID: <a98nqo$26d1$1@jupiter.hub.org>
Permalink:  ../a98nqo$26d1$1@jupiter.hub.org/
Also on:    postgresql.org/message-id/a98nqo$26d1$1@jupiter.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: markcarew@bigpond.com
  Subject: Re: table dump
  In-Reply-To: <a98nqo$26d1$1@jupiter.hub.org>
  References: <00a001c1dfd0$4818a1d0$de138f80@virginia.edu> <a98nqo$26d1$1@jupiter.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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