pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jan Wieck <JanWieck@Yahoo.com>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: /* */ comments showing up in pg_stat_activity
Date: Fri, 25 Apr 2003 23:05:26 -0400
Message-ID: <11772.1051326326@sss.pgh.pa.us> (raw)
In-Reply-To: <3EA9F35A.848AB5D1@Yahoo.com>
References: <200304251617.h3PGHWZ24565@candle.pha.pa.us>
	<3EA9F35A.848AB5D1@Yahoo.com>

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




view thread (8+ messages)  latest in thread

Message-ID: <11772.1051326326@sss.pgh.pa.us>
Permalink:  ../11772.1051326326@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11772.1051326326@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, JanWieck@Yahoo.com, pgman@candle.pha.pa.us, mallah@trade-india.com
  Subject: Re: /* */ comments showing up in pg_stat_activity
  In-Reply-To: <11772.1051326326@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox