X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 99D4FD1D38F for ; Mon, 1 Dec 2003 09:44:00 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 71431-04 for ; Mon, 1 Dec 2003 05:43:30 -0400 (AST) Received: from mwinf0803.wanadoo.fr (smtp8.wanadoo.fr [193.252.22.23]) by svr1.postgresql.org (Postfix) with ESMTP id B856BD1D390 for ; Mon, 1 Dec 2003 05:43:27 -0400 (AST) Received: from STAHER2 (AMarseille-206-2-1-2.w80-11.abo.wanadoo.fr [80.11.112.2]) by mwinf0803.wanadoo.fr (SMTP Server) with SMTP id 901EC18000DF for ; Mon, 1 Dec 2003 10:43:28 +0100 (CET) From: "Armel HERVE" To: Subject: Re: Problem with pg_dump / pg_restore Date: Mon, 1 Dec 2003 10:43:30 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-reply-to: Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/5 X-Sequence-Number: 11513 Hi Mark, in fact, the problem is in the structure backup: this command doesn't care about views dependencies. It take views in creation order to put its in the .sql. So I have to reorder manually this view creations. I made a view (another...) to look for dependencies. Maybe it's the good way. This view give, for each view oid, the dependencies: SELECT dep.objid, (SELECT pg_rewrite.ev_class FROM pg_rewrite WHERE (pg_rewrite.oid = dep.objid )) AS trueoid, dep.refobjid FROM pg_depend dep, pg_rewrite rew, pg_class "class" WHERE dep.objid >= 30000 AND rew.oid = dep.objid AND dep.refobjid = "class".oid AND "class".relkind = 'v' AND rew.ev_class <> dep.refobjid; Armel -----Message d'origine----- De : pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org]De la part de Mark Carew Envoyé : lundi 1 décembre 2003 10:00 À : pgsql-admin@postgresql.org Objet : Re: [ADMIN] Problem with pg_dump / pg_restore Hi Armel, Why not do a structure only dump to plain text and see if you can use that as your start .sql ext file for 'psql -e .. etc'. Eliminates the necessity to have an active client side data dictionary. BTW, your english is fine. Regards markcarew@ magicwanddept.com.au ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)