backward SQL query
backward SQL query
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. | |||
IncrediMail - Email has finally evolved - Click Here
Re: backward SQL query
От:
Karel Zak <zakkr@zf.jcu.cz>
Дата:
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 exampledebug_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 http://home.zf.jcu.cz/~zakkr/C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
Re: backward SQL query
От:
Rajesh Kumar Mallah <mallah@trade-india.com>
Дата:
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. >