From: Tom Lane <tgl@sss.pgh.pa.us>
To: Collin Peters <cadiolis@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Dynamic prepare possible in plpgsql?
Date: Mon, 30 Apr 2007 20:52:22 -0400
Message-ID: <11208.1177980742@sss.pgh.pa.us> (raw)
In-Reply-To: <df01c91b0704301658r71068bf1jea60b8f6d6c5769c@mail.gmail.com>
References: <df01c91b0704301658r71068bf1jea60b8f6d6c5769c@mail.gmail.com>
"Collin Peters" <cadiolis@gmail.com> writes:
> Is it possible to have a dynamic PREPARE statement in plpgsql?
Well, you could use plpgsql's EXECUTE to run SQL PREPARE and EXECUTE
commands, but it seems awfully brute-force. What do you really need
to accomplish here?
regards, tom lane
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: tgl@sss.pgh.pa.us, cadiolis@gmail.com
Subject: Re: Dynamic prepare possible in plpgsql?
In-Reply-To: <11208.1177980742@sss.pgh.pa.us>
* 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