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 36BD5EFFBA for ; Fri, 6 Jun 2003 14:48:20 +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 19620-08 for ; Fri, 6 Jun 2003 14:48:19 +0000 (GMT) Received: from www.postgresql.com (www.postgresql.com [64.117.225.209]) by svr1.postgresql.org (Postfix) with ESMTP id 739B5F003F for ; Fri, 6 Jun 2003 14:47:47 +0000 (GMT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by www.postgresql.com (Postfix) with ESMTP id 118A7CF82EA for ; Thu, 5 Jun 2003 20:27:23 +0000 (GMT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian-6.4) with SMTP id h55KR73J020146; Thu, 5 Jun 2003 15:27:07 -0500 Reply-To: From: "Nick Fankhauser" To: "David A. Leedom" , Subject: Re: Backup and Restore Date: Thu, 5 Jun 2003 15:25:21 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <5.2.0.9.0.20030605075052.028d9888@mail.hightowergroup.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Archive-Number: 200306/56 X-Sequence-Number: 9047 Dave- I ran into this recently & made a similar inquiry of the list. Apparently the pg_restore dependency problems are known issues, but not fixed in 7.2. I haven't looked to see if it is fixed in 7.3 yet. In our case, space was not an issue and backups run quickly enough that I just do two backups each night- one to tar format in case I want to restore individual tables, and one to text format so I can do a complete restore with ease. Before taking this approach I also played around a bit with both the TOC and creating a shell script with a bunch of pg_restores in the correct order. I quickly concluded that as long as space allows, I preferred the simpler approach of two backups since I don't have to remember to edit my shell script every time a make a change to the database. Like you, I prefer my tools for mid-disaster to be simple. -Nick > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of David A. Leedom > Sent: Thursday, June 05, 2003 6:56 AM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] Backup and Restore > > > 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. > > In the middle of a disaster I don't want to have to mess to the TOC. > > What are others doing who are running into this situation. > > Thanks, > Dave Leedom > > > > 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 >