From: Jocelyn Turcotte <turcotte.j@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Prepare plan in plpgsql
Date: Wed, 6 Jul 2005 15:32:26 -0400
Message-ID: <688c0b750507061232430f774e@mail.gmail.com> (raw)
Hi,
i'm wondering if there is a way to prepare and execute a plan in a
plpgsql function.
The prepare seems to work as expected but obviously the execute
plan_name(...) statement is interpreted as the plpgsql execute keyword
and says me that the plan_name function don't exists
is there a way to use prepared queries in plpgsql?
if not what is the best way to pass a parameter directly to a query?
(im using postGIS and it would be nice if I could use another way that
unparsing and parsing a geometry parameter in an execute dynamic
query)
thank you and have all a nice day!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: turcotte.j@gmail.com
Subject: Re: Prepare plan in plpgsql
In-Reply-To: <688c0b750507061232430f774e@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox