Re: [GENERAL] creating trigger - Mailing list pgsql-general

From Ed Loehr
Subject Re: [GENERAL] creating trigger
Date
Msg-id 386130A5.60BB2522@austin.rr.com
Whole thread Raw
In response to creating trigger  (Soundar <Soundar.Pandurangan@exchange1.echostar.com>)
List pgsql-general
Soundar wrote:

> Hi all,
>
> I'm trying to create a trigger.
>
> I created a function which returns a count of the rows.  I used this
> procedure while creating the trigger.  But, I get an error stating SQL
> must return opaque. I tried the same with returning a varchar.  I get
> the same error again.

I vaguely recall that functions directly invoked by triggers must return
opaque types.

But you can call a function from within that function to get a count.
Not sure what you want to do with the count once you have, though...

Cheers,
Ed Loehr


pgsql-general by date:

Previous
From: ^chewie
Date:
Subject: Re: [GENERAL] Interbase replacement
Next
From: Eldad Midan
Date:
Subject: newbie needs help setting up pgsql on linux