pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
backward SQL query
3+ messages / 3 participants
[nested] [flat]

* backward SQL query
@ 2002-02-28 11:34  Jan Oravec <oravecja@intrak.tuke.sk>
  0 siblings, 1 reply; 3+ messages in thread

From: Jan Oravec @ 2002-02-28 11:34 UTC (permalink / raw)
  To: pgsql-sql


I have WEB aplication, whitch browse some data from database. 
Can anybody tell me how I can know, which SQL query was used for display
this data, without know source of aplication, whitch use it and when I'm
administrator of this database. I want it use for control which data are
correct and whitch not.

Thanks for your help.  

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: backward SQL query
@ 2002-02-28 11:55  Karel Zak <zakkr@zf.jcu.cz>
  parent: Jan Oravec <oravecja@intrak.tuke.sk>
  0 siblings, 1 reply; 3+ messages in thread

From: Karel Zak @ 2002-02-28 11:55 UTC (permalink / raw)
  To: Jan Oravec <oravecja@intrak.tuke.sk>; +Cc: pgsql-sql

On Thu, Feb 28, 2002 at 12:34:23PM +0100, Jan Oravec wrote:
> 
> I have WEB aplication, whitch browse some data from database. 
> Can anybody tell me how I can know, which SQL query was used for display
> this data, without know source of aplication, whitch use it and when I'm
> administrator of this database. I want it use for control which data are
> correct and whitch not.


 See your $(PGDATA)/potgresql.conf and debug_* options, an example
 debug_print_query.

 Or may be you can try postmaster "-d" option.

 More information:
 http://docs.linux.cz/PostgreSQL/runtime-config.html#LOGGING

        Karel
-- 
 Karel Zak  <zakkr@zf.jcu.cz>
 http://home.zf.jcu.cz/~zakkr/
 
 C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: backward SQL query
@ 2002-02-28 15:41  Rajesh Kumar Mallah <mallah@trade-india.com>
  parent: Karel Zak <zakkr@zf.jcu.cz>
  0 siblings, 0 replies; 3+ messages in thread

From: Rajesh Kumar Mallah @ 2002-02-28 15:41 UTC (permalink / raw)
  To: Jan Oravec <oravecja@intrak.tuke.sk>; +Cc: pgsql-sql

in 7.2 PGSQL you can do  select * from pg_stat_activity ;

provided you have enable statistics collection.

regds
Mallah.


Karel Zak wrote:

> On Thu, Feb 28, 2002 at 12:34:23PM +0100, Jan Oravec wrote:
> >
> > I have WEB aplication, whitch browse some data from database.
> > Can anybody tell me how I can know, which SQL query was used for display
> > this data, without know source of aplication, whitch use it and when I'm
> > administrator of this database. I want it use for control which data are
> > correct and whitch not.
>
>  See your $(PGDATA)/potgresql.conf and debug_* options, an example
>  debug_print_query.
>
>  Or may be you can try postmaster "-d" option.
>




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-02-28 15:41 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-28 11:34 backward SQL query Jan Oravec <oravecja@intrak.tuke.sk>
2002-02-28 11:55 ` Karel Zak <zakkr@zf.jcu.cz>
2002-02-28 15:41   ` Rajesh Kumar Mallah <mallah@trade-india.com>

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