Re: Prepared Statement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rosenblum, Jason" <jrosenblum(at)wcmh(dot)org>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Prepared Statement
Date: 2009-03-06 15:31:08
Message-ID: 28464.1236353468@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Rosenblum, Jason" <jrosenblum(at)wcmh(dot)org> writes:
> Is it possible to create a prepared statement with a parameter that is
> actually the column name of a table?

No. In your example, how could the planner do any useful "preparation",
when it doesn't know which column to group by or even what the data type
of the grouping will be?

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message sundberg 2009-03-06 17:53:31 NOOB Login Questions
Previous Message Rosenblum, Jason 2009-03-06 13:39:56 Prepared Statement