X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 26638EFF9E for ; Fri, 6 Jun 2003 14:50:23 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 20104-03 for ; Fri, 6 Jun 2003 14:50:18 +0000 (GMT) Received: from www.postgresql.com (www.postgresql.com [64.117.225.209]) by svr1.postgresql.org (Postfix) with ESMTP id 988B0F00CC for ; Fri, 6 Jun 2003 14:47:56 +0000 (GMT) Received: from hightowergroup.com (mail005.readyhosting.com [63.99.209.11]) by www.postgresql.com (Postfix) with ESMTP id 734D7CF8308 for ; Thu, 5 Jun 2003 20:41:47 +0000 (GMT) Received: from hightower5.mail.hightowergroup.com [66.109.231.196] by hightowergroup.com with ESMTP (SMTPD32-7.07) id AA671460112; Thu, 05 Jun 2003 15:39:03 -0500 Message-Id: <5.2.0.9.0.20030605164012.02888230@mail.hightowergroup.com> X-Sender: daleedom@hightowergroup.com@mail.hightowergroup.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Thu, 05 Jun 2003 16:40:33 -0400 To: Jonathan Gardner , pgsql-admin@postgresql.org From: "David A. Leedom" Subject: Re: Backup and Restore In-Reply-To: <200306051322.43748.jgardner@jonathangardner.net> References: <5.2.0.9.0.20030605075052.028d9888@mail.hightowergroup.com> <5.2.0.9.0.20030605075052.028d9888@mail.hightowergroup.com> Mime-Version: 1.0 Content-Type: multipart/mixed; x-avg-checked=avg-ok-33CD2E72; boundary="=======1929ED2=======" X-Archive-Number: 200306/49 X-Sequence-Number: 9040 --=======1929ED2======= Content-Type: text/plain; x-avg-checked=avg-ok-33CD2E72; charset=us-ascii; format=flowed Content-Transfer-Encoding: 8bit But I have blobs in my data so I am using -F c At 01:22 PM 6/5/2003 -0700, Jonathan Gardner wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >On Thursday 05 June 2003 04:56, David A. Leedom wrote: > > I am using 7.2.x. When I run pg_dump on a database the objects are not > > loaded in the correct dependency order. > > > > Soooo.... when I run pg_restore it fails because objects that are needed > > have not been restored yet (ie. trieds to restore a view that points to a > > table that has not yet been restored). I then monkey around with the Table > > of Contents (TOC) and am able to get the restore to work. > > > >Don't use pg_restore. Use psql. Note that pg_dump dumps a bunch of SQL >commands. > >This is also a cheap way to "vacuum" the database: > ># pg_dump | gzip > dump.gz ># dropdb ># createdb ># gunzip -c dump.gz > psql > >- -- >Jonathan Gardner >(was jgardn@alumni.washington.edu) >Live Free, Use Linux! >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.1 (GNU/Linux) > >iD8DBQE+36aSWgwF3QvpWNwRAveXAJ4qiMWs7bAsAQoQYmUb0j1bkYOrjwCgwVt6 >Gkotl26Q7541ofhVDTP4lQk= >=U7V7 >-----END PGP SIGNATURE----- > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003 The Hightower Group, Inc. Information Technology Consulting 165 West Airport Road/Lititz, PA 17543 V:717-560-4002, 877-560-4002 x: 114 F:717-560-2825 www.hightowergroup.com --=======1929ED2======= Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-33CD2E72 Content-Disposition: inline --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003 --=======1929ED2=======--