Re: Trouble with NEW - Mailing list pgsql-general

From David Johnston
Subject Re: Trouble with NEW
Date
Msg-id 00b001cd65dc$0a891960$1f9b4c20$@yahoo.com
Whole thread Raw
In response to Re: Trouble with NEW  (Adrian Klaver <adrian.klaver@gmail.com>)
Responses Re: Trouble with NEW
List pgsql-general
>
> 4) If you want to pull information from another table, you either need to set
> up a FOREIGN KEY relationship that you can leverage or you need to do a
> query in the trigger function that pulls in the necessary information.
>

I do not get where the "OR" comes from.  There is nothing magical about FOREIGN KEY that causes NEW magically contain
additionalvalues.  Foreign Key or not you still have to "...do a query in the trigger function...". 

David J.



pgsql-general by date:

Previous
From: Luiz Damim
Date:
Subject: Default value of serial fields changes after restore
Next
From: Adrian Klaver
Date:
Subject: Re: Trouble with NEW