I get the same thing on 8.2.9. ...Robert
On Wed, Oct 8, 2008 at 2:29 PM, Alvaro Herrera <[EMAIL PROTECTED]> wrote: > Hi, > > Trigger functions are supposed to be able to be called only as triggers, > but apparently the check is not working in CVS HEAD: > > alvherre=# create or replace function foo () returns trigger as $$ begin > perform 1; return new; end; $$ language plpgsql; > CREATE FUNCTION > alvherre=# select foo(); > foo > ----- > > (1 fila) > > > -- > Alvaro Herrera http://www.CommandPrompt.com/ > PostgreSQL Replication, Consulting, Custom Development, 24x7 support > > -- > Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-hackers > -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers