Received: from nts-03.mm.eutelsat.org (nts-03.mm.eutelsat.org [194.214.173.15]) by postgresql.org (Postfix) with ESMTP id 58D1B4759F1 for ; Wed, 13 Mar 2002 04:24:53 -0500 (EST) Received: from dell-01.mm.eutelsat.org (IDENT:root@dell-01.mm.eutelsat.org [194.214.173.17]) by nts-03.mm.eutelsat.org (8.9.3/8.8.7) with ESMTP id KAA14943; Wed, 13 Mar 2002 10:22:08 +0100 Received: from GMENDOLA2 (gmendola2.mm.eutelsat.org [194.214.173.26]) by dell-01.mm.eutelsat.org (8.11.2/8.8.7) with SMTP id g2D9NqQ27364; Wed, 13 Mar 2002 10:23:52 +0100 Message-ID: <010401c1ca70$cacec160$d28efea9@GMENDOLA2> From: "Gaetano Mendola" To: "Stephan Szabo" Cc: References: <20020312091736.O65075-100000@megazone23.bigpanda.com> Subject: Re: Dependence beetwen Function Date: Wed, 13 Mar 2002 10:23:52 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200203/160 X-Sequence-Number: 3694 "Stephan Szabo" 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 #include printf("\t\t\b\b\b\b\b\b");. printf("\t\t\b\b\b\b\b\b");