pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Rajesh Kumar Mallah <rmallah@trade-india.com>
Cc: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: /* */ comments showing up in pg_stat_activity
Date: Mon, 28 Apr 2003 18:19:23 -0400 (EDT)
Message-ID: <200304282219.h3SMJOF20006@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0304262157100.696-100000@localhost.localdomain>

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, Pennsylvania 19073




view thread (8+ messages)

Message-ID: <200304282219.h3SMJOF20006@candle.pha.pa.us>
Permalink:  ../200304282219.h3SMJOF20006@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200304282219.h3SMJOF20006@candle.pha.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: pgman@candle.pha.pa.us, rmallah@trade-india.com, mallah@trade-india.com, tgl@sss.pgh.pa.us
  Subject: Re: /* */ comments showing up in pg_stat_activity
  In-Reply-To: <200304282219.h3SMJOF20006@candle.pha.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