X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1B0C93A491E for ; Thu, 20 Jan 2005 19:43:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66938-04 for ; Thu, 20 Jan 2005 19:43:46 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id B570D3A48C2 for ; Thu, 20 Jan 2005 19:43:46 +0000 (GMT) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Thu, 20 Jan 2005 14:36:18 -0500 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Thu, 20 Jan 2005 14:38:28 -0500 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id IAMS4U00.0TY for ; Thu, 20 Jan 2005 14:43:42 -0500 Received: from us.michelin.com (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Thu, 20 Jan 2005 14:43:42 -0500 Message-Id: <41F009EA.6050401@us.michelin.com> Date: Thu, 20 Jan 2005 14:43:38 -0500 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joost Kraaijeveld Cc: "Pgsql-Odbc (E-mail)" Subject: Re: How to call a stored procedure in PostgreSQL References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------000002090105000800080003" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.025 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/53 X-Sequence-Number: 4848 This is a multi-part message in MIME format. --------------000002090105000800080003 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Try "SELECT procedure-name(arg1, arg2)" as if it were a SELECT or INSERT or UPDATE statement. For example if I have function named calc_square(int) I could use "SELECT calc_square(2);" Joost Kraaijeveld wrote: >Hi all, > >How do I call a stored procedure in PostgreSQL? I tried "call procedure-name (arg 1, arg2)" but that does not seem to work... > >Groeten, > >Joost Kraaijeveld >Askesis B.V. >Molukkenstraat 14 >6524NB Nijmegen >tel: 024-3888063 / 06-51855277 >fax: 024-3608416 >e-mail: J.Kraaijeveld@Askesis.nl >web: www.askesis.nl > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > > --------------000002090105000800080003 Content-Type: text/x-vcard; charset=utf8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America;ENG-IT adr;dom:;;2420 Two Notch Road;Lexington;SC;29071 email;internet:greg.campbell@us.michelin.com title:Systems Engineer tel;work:803-951-5561 tel;fax:803-951-5531 x-mozilla-html:FALSE version:2.1 end:vcard --------------000002090105000800080003--