Jan Wieck <JanWieck(at)Yahoo(dot)com> writes:
> The question back is from where does such a query with a comment come?
> If it is a standard client like psql, it could happen someday that this
> client does some filtering.
psql already does strip comments (and always has, AFAIK).
> If you're using libpq or another API that is
> basically a libpq wrapper, you're pretty safe.
Agreed, I doubt we'd ever bother to put comment-stripping logic in libpq.
regards, tom lane