Re: Trigger and Function Question - Mailing list pgsql-novice

From Shay Moreno
Subject Re: Trigger and Function Question
Date
Msg-id 5D38890DAE46D41186A800508B6F7187026FFD9A@oestmb010-b0.tdk.dk
Whole thread Raw
In response to Trigger and Function Question  ("Jeff Umstead" <jumstead@timlsoftware.com>)
List pgsql-novice
> Looks like you deleted and recreated the function, without also deleting
> and recreating the trigger that refers to it.  Now the trigger is
> referring to a no-longer-existent function OID ... remake the trigger
> and try again.

    Excuse other preposterous question of mine, but the reliance of OID
don't go against the Information Principle for relational databases?  Even
if PosgreSQL isn't strictly relational, and if triggers and functions aren't
really in the scope of the relational model, what is the rationale for such
exposition of a fairly internal construct as an OID?  Perhaps the use of the
name of the function in the internal reference from the trigger would be too
expensive performace-wise, but then perhaps the function could be at least
marked invalid, like the ORA-04063 error in
http://technet.oracle.com./doc/server.805/a58312/newcha25.htm#23933, in
order to make troubleshooting simpler.

    Just my 2c.



--
  _
 / \       Leandro Guimarães Faria Corcete Dutra        +55 (11) 3040 8913
 \ /       Amdocs Brasil Ltda at Tele Danmark                +45 3387 5214
  X   http://terravista.pt./Enseada/1989/     mailto:leandrod@amdocs.com
 / \     Campanha fita ASCII                        mailto:moreno@tdk.dk

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Trigger and Function Question
Next
From: "phpa"
Date:
Subject: < Int4 - limit >