Re: /* */ comments showing up in pg_stat_activity - Mailing list pgsql-sql

From Tom Lane
Subject Re: /* */ comments showing up in pg_stat_activity
Date
Msg-id 11772.1051326326@sss.pgh.pa.us
Whole thread Raw
In response to Re: /* */ comments showing up in pg_stat_activity  (Jan Wieck <JanWieck@Yahoo.com>)
Responses Re: /* */ comments showing up in pg_stat_activity
List pgsql-sql
Jan Wieck <JanWieck@Yahoo.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



pgsql-sql by date:

Previous
From: Jan Wieck
Date:
Subject: Re: /* */ comments showing up in pg_stat_activity
Next
From: Josh Berkus
Date:
Subject: Re: Statement triggers 7.4 NEW/OLD