X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1634BD1DAA7 for ; Tue, 17 Feb 2004 14:41:59 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 78276-06 for ; Tue, 17 Feb 2004 10:41:56 -0400 (AST) Received: from ind-iport-1.cisco.com (ind-iport-1-sec.cisco.com [64.104.129.9]) by svr1.postgresql.org (Postfix) with ESMTP id 727E7D1DAA0 for ; Tue, 17 Feb 2004 10:41:51 -0400 (AST) Received: from india-core-1.cisco.com (64.104.129.221) by ind-iport-1.cisco.com with ESMTP; 18 Feb 2004 01:45:21 +0530 Received: from cisco.com (charminar.cisco.com [192.135.240.11]) by india-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id i1HEfhWT022848 for ; Tue, 17 Feb 2004 06:41:44 -0800 (PST) Received: from sbiswasw2k01 (dhcp-10-77-21-42.cisco.com [10.77.21.42]) by cisco.com (8.8.8-Cisco List Logging/8.8.8) with ESMTP id UAA22538 for ; Tue, 17 Feb 2004 20:09:58 +0530 (IST) Reply-To: From: "Sumita Biswas (sbiswas)" To: Subject: FW: Function Date: Tue, 17 Feb 2004 20:11:50 +0530 Organization: cisco systems Message-ID: <00e601c3f564$2dca6740$2a154d0a@apac.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/219 X-Sequence-Number: 16909 Is there nothing like SET NOCOUNT ON; in plpgsql Is there any option like SET ANSI_NULLS ON in plpgsql. Do we append # before the temp table names in plpgsql, like we do for MSSQL ? In case no how do we create a temp table in a function in plsql? -----Original Message----- From: Stephan Szabo [mailto:sszabo@megazone.bigpanda.com] Sent: Monday, February 16, 2004 11:10 PM To: Sumita Biswas (sbiswas) Cc: pgsql-sql@postgresql.org Subject: RE: [SQL] Function On Mon, 16 Feb 2004, Sumita Biswas (sbiswas) wrote: > Thanks for the answer. > I have one more issue. How do I test a function that I wrote? I was > able to create a function called Proc_ConferenceSummary(). In SQL > Server I used to run it through query analyzer by writing the > following command: exec Proc_ConferenceSummary > '12/1/2003','1/23/2004',1,1,0,5001 For functions that return setof or complex types, you can do it as select * from Proc_ConferenceSummary(...) as alias; For simple functions you can just use: select functionname(...);