Re: Acessing columns of parent tables with PL/pgSQL

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: Hans-Juergen Schoenig <hs(at)cybertec(dot)at>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Acessing columns of parent tables with PL/pgSQL
Date: 2002-06-28 13:42:08
Message-ID: vjpohug97ccfkfsijqa0l4rg1schlkhfhb@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 27 Jun 2002 18:38:10 +0200, Hans-Juergen Schoenig
<hs(at)cybertec(dot)at> wrote:
>CREATE FUNCTION myinsert() RETURNS opaque AS '
> BEGIN
> RAISE NOTICE ''1 - NEW: %\n'', NEW.one;
> RAISE NOTICE ''2 - NEW: %\n'', NEW.two;
> RETURN NEW;
> END;
>' LANGUAGE 'plpgsql';
>
>An error is displayed:
>ERROR: function myinsert already exists with same argument types

Hans, you are still running an old version of your function
myinsert(). Better use
CREATE OR REPLACE FUNCTION myinsert() ...

Servus
Manfred

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Markus Wollny 2002-06-28 13:52:56 Re: One source of constant annoyance identified
Previous Message Oleg Bartunov 2002-06-28 13:40:24 Re: recursing down a tree