Received: from web2106.mail.yahoo.com (web2106.mail.yahoo.com [128.11.68.250]) by hub.org (8.9.3/8.9.3) with SMTP id KAA60986 for ; Wed, 22 Dec 1999 10:17:55 -0500 (EST) (envelope-from psrajan@yahoo.com) Received: (qmail 19850 invoked by uid 60001); 22 Dec 1999 15:17:54 -0000 Message-ID: <19991222151754.19849.qmail@web2106.mail.yahoo.com> Received: from [205.172.146.239] by web2106.mail.yahoo.com; Wed, 22 Dec 1999 07:17:54 PST Date: Wed, 22 Dec 1999 07:17:54 -0800 (PST) From: soundar rajan Subject: Trigger To: Mike Beller , Ed Loehr , pgsql-general@postgreSQL.org Cc: Thomas Reinke , Jose Soares , pgsql-general@postgreSQL.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I'm trying to create a trigger. The function I'm using returns the count(*) from a table. But, during the creation of the trigger, I get an error stating the function must return opaque. I tried the same with the function to be returning a varchar. But, again I get the same error. In simple words, it's this. I'm trying to create a simple trigger which just prints out a message (as dbms_out.println() in oracle) before or after insertion or updation on a table. Even if it doesn't print a message, some changes to be made on the table. Can some one give me a simple example which does it. Thanks in advance. __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one place. Yahoo! Shopping: http://shopping.yahoo.com