From: mallah@trade-india.com
To: pgsql-admin@postgresql.org
Subject: dependency tracking of functions & schemas , problem in dump and restore.
Date: Sat, 26 Jul 2003 23:02:14 +0530 (IST)
Message-ID: <1100.203.145.130.142.1059240734.squirrel@mail.trade-india.com> (raw)
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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mallah@trade-india.com
Subject: Re: dependency tracking of functions & schemas , problem in dump and restore.
In-Reply-To: <1100.203.145.130.142.1059240734.squirrel@mail.trade-india.com>
References: <1100.203.145.130.142.1059240734.squirrel@mail.trade-india.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox