Re: Prepared Statement - Mailing list pgsql-novice

From Tom Lane
Subject Re: Prepared Statement
Date
Msg-id 28464.1236353468@sss.pgh.pa.us
Whole thread Raw
In response to Prepared Statement  ("Rosenblum, Jason" <jrosenblum@wcmh.org>)
List pgsql-novice
"Rosenblum, Jason" <jrosenblum@wcmh.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

pgsql-novice by date:

Previous
From: "Rosenblum, Jason"
Date:
Subject: Prepared Statement
Next
From: sundberg@gdls.com
Date:
Subject: NOOB Login Questions