From: Gaetano Mendola <mendola@bigfoot.com>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Dependence beetwen Function
Date: Wed, 13 Mar 2002 10:23:52 +0100
Message-ID: <010401c1ca70$cacec160$d28efea9@GMENDOLA2> (raw)
References: <20020312091736.O65075-100000@megazone23.bigpanda.com>
"Stephan Szabo" <sszabo@megazone23.bigpanda.com> wrote:
> On Tue, 12 Mar 2002, Gaetano Mendola wrote:
>
> > Hi to all
> >
> > Suppose that I have the function A that use the fucntion B.
> > When I drop and reconstruct B I should also reconstruct A.
> > Can I avoid this ?
> > Is a really problem with hundreds of function around.
>
> If you're using 7.2 you can use create or replace function
> rather than drop function followed by create function.
>
Fine. Yesterday with the release 7.1.3 I notice that if a table have a
constraint like this:
CREATE TABLE user_data (
.......
login VARCHAR(64) NOT NULL CHECK ( myFunction(login) ),
......
);
if I drop and recreate the function myFunction
I'm not able to insert data on table user_data.
May be with the version 7.2 this problem not exist anymore
(with the replace feature) but I notice also that if I do a
pg_dump > dump.sql
I have on dump.sql before the creation of tables and after the
creation of functions, in this way the table user_data is not
created ... :-(
I hope that this was fixed in version 7.2
Ciao
Gaetano
--
#exclude <windows>
#include <CSRSS>
printf("\t\t\b\b\b\b\b\b");.
printf("\t\t\b\b\b\b\b\b");
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: mendola@bigfoot.com, sszabo@megazone23.bigpanda.com
Subject: Re: Dependence beetwen Function
In-Reply-To: <010401c1ca70$cacec160$d28efea9@GMENDOLA2>
References: <20020312091736.O65075-100000@megazone23.bigpanda.com> <010401c1ca70$cacec160$d28efea9@GMENDOLA2>
* 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