X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 3D1F49DC940 for ; Thu, 19 Jan 2006 07:15:12 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93730-05 for ; Thu, 19 Jan 2006 07:15:13 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (serval.logix-tt.com [213.239.221.42]) by postgresql.org (Postfix) with ESMTP id EC1D49DC8A7 for ; Thu, 19 Jan 2006 07:15:07 -0400 (AST) Received: from kingfisher.intern.logix-tt.com (Meb96.m.pppool.de [89.49.235.150]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 9F02A24400F; Thu, 19 Jan 2006 12:15:08 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 5C57C18148C2D; Thu, 19 Jan 2006 12:15:09 +0100 (CET) Message-ID: <43CF74BD.7000100@logix-tt.com> Date: Thu, 19 Jan 2006 12:15:09 +0100 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marcos Cc: Michael Fuhr , pgsql-performance@postgresql.org Subject: Re: Use of Stored Procedures and References: <1137488693.971.23.camel@servidor> <20060118202825.GA94306@winnie.fuhr.org> <1137660256.930.7.camel@servidor> In-Reply-To: <1137660256.930.7.camel@servidor> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.125 required=5 tests=[AWL=0.125] X-Spam-Score: 0.125 X-Spam-Level: X-Archive-Number: 200601/324 X-Sequence-Number: 16802 Hi, Marcos, Marcos wrote: >>What problem are you trying to solve? > > I want know how I make to use a prepared plan > ( http://www.postgresql.org/docs/8.1/static/sql-prepare.html ). I read > that I need to use the SPI_PREPARE and SPI_EXEC in my code, but I didn't > understand how make it. Which interface are you using to connect to PostgreSQL? libpq, libpqxx, pgjdbc, python-popy? E. G. PGJDBC handles prepared plans transparently by using the PreparedStatement class. If you use command line PSQL, you can use the PREPARE commands. Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org