Re: Dynamic prepare possible in plpgsql?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Collin Peters" <cadiolis(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Dynamic prepare possible in plpgsql?
Date: 2007-05-01 00:52:22
Message-ID: 11208.1177980742@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Collin Peters" <cadiolis(at)gmail(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Collin Peters 2007-05-01 16:52:52 Re: Dynamic prepare possible in plpgsql?
Previous Message Tom Lane 2007-05-01 00:46:57 Re: "is not distinct from" syntax error?