pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Dan Langille <dan@langille.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Dependence beetwen Function
Date: Tue, 12 Mar 2002 12:50:53 -0800 (PST)
Message-ID: <20020312124855.Y68318-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20020312191441.B37933F0E@bast.unixathome.org>


On Tue, 12 Mar 2002, Dan Langille wrote:

> On 12 Mar 2002 at 9:18, 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.
>
> I just finished updating my SP and RI functions to take advantage of this.
>  While doing that I starting thinking about triggers.  Checking the
> documentation, I don't see a similar feature for triggers.  I'm guessing
> that triggers do not suffer from the same problem as that which prompted
> the original post.

I don't know of anything that directly refers to triggers.
You will however want to use create or replace function on the functions
refered to by triggers since that way you don't need to drop and recreate
the trigger.




view thread (8+ messages)  latest in thread

Message-ID: <20020312124855.Y68318-100000@megazone23.bigpanda.com>
Permalink:  ../20020312124855.Y68318-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020312124855.Y68318-100000@megazone23.bigpanda.com

 · 

reply

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: sszabo@megazone23.bigpanda.com, dan@langille.org
  Subject: Re: Dependence beetwen Function
  In-Reply-To: <20020312124855.Y68318-100000@megazone23.bigpanda.com>
  References: <20020312191441.B37933F0E@bast.unixathome.org> <20020312124855.Y68318-100000@megazone23.bigpanda.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