Re: [GENERAL] ALTER FUNCTION

From: Sascha Ziemann <szi(at)khs-ag(dot)de>
To: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] ALTER FUNCTION
Date: 1999-12-02 13:15:16
Message-ID: m3iu2hxz4r.fsf@intra.do.khs-ag.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adriaan Joubert <a(dot)joubert(at)albourne(dot)com> writes:

| Just drop the function, drop all triggers that use the function,
| re-create the function and recreate all triggers. If the function is
| called by other PL functions, you need to drop and re-install those as
| well. If you keep them all in a big file, every one preceded by drop,
| you can just reload the file (with \i into psql) whenever you have
| changed something. No need to dump any data.

When I use the function in a CHECK constrain of a table, I have to
destroy the table. Or is it possible to refresh the reference to the
function by an ALTER TABLE statement?

By the way: when I drop a table that is used by another table via
INHERITS, I get the warning, that the table is used and that I can not
drop it. Why are functions handled different? I is really a problem,
when there are broken tables in a database and nobody knows it.

Sascha

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sascha Ziemann 1999-12-02 13:53:35 Re: [GENERAL] ALTER FUNCTION
Previous Message Adriaan Joubert 1999-12-02 13:08:08 Re: [GENERAL] ALTER FUNCTION