Re: [GENERAL] creating trigger

From: Ed Loehr <ELOEHR(at)austin(dot)rr(dot)com>
To: Soundar <Soundar(dot)Pandurangan(at)exchange1(dot)echostar(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] creating trigger
Date: 1999-12-22 20:12:21
Message-ID: 386130A5.60BB2522@austin.rr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve 1999-12-22 21:00:44 Re: newbie needs help setting up pgsql on linux
Previous Message Gene Selkov 1999-12-22 20:00:48 Re: [GENERAL] char(xx) problem