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 EA5F5D1B456 for ; Mon, 16 Feb 2004 17:39:49 +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 20970-04 for ; Mon, 16 Feb 2004 13:39:43 -0400 (AST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id 81172D1D25D for ; Mon, 16 Feb 2004 13:39:42 -0400 (AST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 16A313558A; Mon, 16 Feb 2004 09:39:42 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 153B03527A; Mon, 16 Feb 2004 09:39:42 -0800 (PST) Date: Mon, 16 Feb 2004 09:39:42 -0800 (PST) From: Stephan Szabo To: "Sumita Biswas (sbiswas)" Cc: pgsql-sql@postgresql.org Subject: Re: Function In-Reply-To: <004d01c3f464$8ecf67d0$2a154d0a@apac.cisco.com> Message-ID: <20040216093810.V14898@megazone.bigpanda.com> References: <004d01c3f464$8ecf67d0$2a154d0a@apac.cisco.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/203 X-Sequence-Number: 16893 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(...);