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

From Bruce Momjian
Subject Re: /* */ comments showing up in pg_stat_activity
Date
Msg-id 200304282219.h3SMJOF20006@candle.pha.pa.us
Whole thread Raw
In response to /* */ comments showing up in pg_stat_activity  (Rajesh Kumar Mallah <mallah@trade-india.com>)
List pgsql-sql
Rajesh Kumar Mallah wrote:
> But if i were to use DBD::Perl (which probably uses libpq)
> is it safe to pass query indentifier in comments which u 
> said are not stripped by psql eg
> /* AppName: Xyzt */ Select foo from bar where cw='t' ;
> for years to come ?
> 
> why i ask is that i was always curious of the slow 
> long running queries in pg_stat_activity and not able
> to figure out the source had frustrated me , now
> this method if it works seems to me as a viable solution.

I think you have to look try perl to see how it handles it, but I think
it just passes the query whole, so all the comments should pass
themselves to the backend.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 



pgsql-sql by date:

Previous
From: rute solipa
Date:
Subject: help query
Next
From:
Date:
Subject: Re: plpgsql Question..