dependency tracking of functions & schemas , problem in dump and restore.

From: <mallah(at)trade-india(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: dependency tracking of functions & schemas , problem in dump and restore.
Date: 2003-07-26 17:32:14
Message-ID: 1100.203.145.130.142.1059240734.squirrel@mail.trade-india.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


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/

Browse pgsql-admin by date

  From Date Subject
Next Message Mendola Gaetano 2003-07-27 20:46:32 RPM for 7.3.4
Previous Message Mendola Gaetano 2003-07-26 17:31:34 Release note missing