Re: Prepared statements with bind parameters for DDL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: deepak <deepak(dot)pn(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Prepared statements with bind parameters for DDL
Date: 2015-02-11 19:22:10
Message-ID: 10355.1423682530@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

deepak <deepak(dot)pn(at)gmail(dot)com> writes:
> I find that one can't have a prepared statement with bind parameters for a
> DDL statement,

Nope. DDL commands generally don't have any support for evaluating
expressions, which would be the context in which parameters would
be useful. Nor have they got plans, which would be the requirement
for prepared statements to be good for much either.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Daniel LaMotte 2015-02-11 21:47:58 Issue dumping schema using readonly user
Previous Message Adrian Klaver 2015-02-11 17:53:55 Re: Prepared statements with bind parameters for DDL