Re: /* */ comments showing up in pg_stat_activity

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: /* */ comments showing up in pg_stat_activity
Дата
Msg-id 11772.1051326326@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: /* */ comments showing up in pg_stat_activity  (Jan Wieck <JanWieck@Yahoo.com>)
Ответы Re: /* */ comments showing up in pg_stat_activity  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Список 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 по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: /* */ comments showing up in pg_stat_activity
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Statement triggers 7.4 NEW/OLD