Received: from jupiter.hub.org (jupiter.hub.org [64.49.215.5]) by postgresql.org (Postfix) with ESMTP id 0C8674759B5 for ; Sat, 13 Apr 2002 04:10:03 -0400 (EDT) Received: from jupiter.hub.org (localhost [127.0.0.1]) by jupiter.hub.org (8.12.2/8.12.2) with ESMTP id g3D89wFs085303 for ; Sat, 13 Apr 2002 03:10:00 -0500 (CDT) (envelope-from news@jupiter.hub.org) Received: (from news@localhost) by jupiter.hub.org (8.12.2/8.12.2/Submit) id g3D7lbft072100 for pgsql-admin@postgresql.org; Sat, 13 Apr 2002 02:47:37 -0500 (CDT) From: "mark carew" X-Newsgroups: comp.databases.postgresql.admin Subject: Re: table dump Date: Sat, 13 Apr 2002 17:45:03 +1000 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 23 Message-ID: References: <00a001c1dfd0$4818a1d0$de138f80@virginia.edu> X-Complaints-To: news@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-admin@postgresql.org X-Archive-Number: 200204/122 X-Sequence-Number: 4010 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.