<floyds@4peakstech.com> writes:
> when i copy/paste the select stmt into psql, it works. or if i use it
> "dynamically". it doesn't work properly when i use it in a prepared
> statement -- which is what i am doing.
Could we see a self-contained example of the problem? It's hard to tell
whether you are dealing with a bug or pilot error ...
regards, tom lane