Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 54A924762AF for ; Fri, 13 Sep 2002 13:08:47 -0400 (EDT) Received: from mailhost.nxad.com (lan.ext.nxad.com [66.250.180.254]) by postgresql.org (Postfix) with ESMTP id CC2E74761D0 for ; Fri, 13 Sep 2002 13:08:46 -0400 (EDT) Received: from perrin.int.nxad.com (perrin.int.nxad.com [192.168.1.251]) by mailhost.nxad.com (Postfix) with ESMTP id 89CC9212E00; Fri, 13 Sep 2002 10:08:46 -0700 (PDT) Received: by perrin.int.nxad.com (Postfix, from userid 1001) id 2991E20F01; Fri, 13 Sep 2002 10:08:45 -0700 (PDT) Date: Fri, 13 Sep 2002 10:08:45 -0700 From: Sean Chittenden To: shreedhar Cc: Postgres Subject: Re: Is it possible return any value other than 'OPAQUE' Message-ID: <20020913170845.GQ7103@perrin.int.nxad.com> References: <000d01c25b1e$fdb550a0$1201a8c0@a4005> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000d01c25b1e$fdb550a0$1201a8c0@a4005> User-Agent: Mutt/1.4i X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 6CEB 1B06 BFD3 70F6 95BE 7E4D 8E85 2E0A 5F5B 3ECB X-Web-Homepage: http://sean.chittenden.org/ X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/153 X-Sequence-Number: 5692 > Is it possible return any value other than 'OPAQUE', If we can > return how it can be retreived. > > CREATE FUNCTION emp_stamp () RETURNS OPAQUE AS > BEGIN > > END; > ' LANGUAGE 'plpgsql'; For functions that you need to have return a value, yes: CREATE FUNCTION uga() RETURNS INT AS BEGIN RETURN(5); END: ' LANGUAGE 'plpgsql'; In 7.3 triggers should return type TRIGGER and not OPAQUE. This will still work, but will issue a warning. -sc -- Sean Chittenden