X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2DDA6D1C7F2 for ; Sat, 26 Jul 2003 17:31:50 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 48917-08 for ; Sat, 26 Jul 2003 14:30:59 -0300 (ADT) Received: from trade-india.com (ns1.trade-india.com [66.234.10.14]) by svr1.postgresql.org (Postfix) with SMTP id 02E11D1C7F0 for ; Sat, 26 Jul 2003 14:31:48 -0300 (ADT) Received: (qmail 10597 invoked by uid 505); 26 Jul 2003 17:32:15 -0000 Received: from mallah@trade-india.com by ns1.trade-india.com by uid 502 with qmail-scanner-1.16 (clamscan: 0.54. spamassassin: 2.54. Clear:SA:0(-96.5/5.0):. Processed in 0.566508 secs); 26 Jul 2003 17:32:15 -0000 Received: from ns1.trade-india.com (HELO trade-india.com) (66.234.10.14) by ns1.trade-india.com with SMTP; 26 Jul 2003 17:32:14 -0000 Received: from 203.145.130.142 (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Sat, 26 Jul 2003 23:02:14 +0530 (IST) Message-ID: <1100.203.145.130.142.1059240734.squirrel@mail.trade-india.com> Date: Sat, 26 Jul 2003 23:02:14 +0530 (IST) Subject: dependency tracking of functions & schemas , problem in dump and restore. From: To: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.6 tagged_above=0.0 required=5.0 tests=BAYES_20, CLICK_BELOW, MISSING_MIMEOLE, MISSING_OUTLOOK_NAME, NO_REAL_NAME, SEARCH_ENGINE_PROMO X-Spam-Level: X-Archive-Number: 200307/270 X-Sequence-Number: 9610 Hi, CREATE FUNCTION checks properly for the existance of referred schemas. Eg CREATE FUNCTION current_date_id(timestamp) returns integer AS 'SELECT date_id from general.date_dimension where sql_date=date($1)' language 'SQL';ERROR: Namespace "general" does not exist but DROP SCHEMA does not check that some function could depend on a table that is potentially getting dropped. If such functions remains even when corresponding schemas are dropped they do not pass the dump restore cycle. Even if the schema are not dropped pg_dump [ 7.4dev ] dumps out these functions before the SCHEMA creation hence restore fails. regds Mallah. ----------------------------------------- Over 1,00,000 exporters are waiting for your order! Click below to get in touch with leading Indian exporters listed in the premier trade directory Exporters Yellow Pages. http://www.trade-india.com/dyn/gdh/eyp/