From oravecja@intrak.tuke.sk Thu Feb 28 11:35:59 2002 Received: from alfa.intrak.tuke.sk (alfa.intrak.tuke.sk [147.232.152.3]) by postgresql.org (Postfix) with ESMTP id 88761475469 for ; Thu, 28 Feb 2002 06:35:59 -0500 (EST) Received: from elvin (elvin.intrak.tuke.sk [147.232.153.229]) by alfa.intrak.tuke.sk (Postfix) with SMTP id 7C0FA15035 for ; Thu, 28 Feb 2002 12:34:56 +0100 (CET) MIME-Version: 1.0 Message-Id: <3C7E15BF.000003.01684@elvin.intrak.tuke.sk> Date: Thu, 28 Feb 2002 12:34:23 +0100 (Central Europe Standard Time) Content-Type: Multipart/related; type="multipart/alternative"; boundary="------------Boundary-00=_BTQ8G6G0000000000000" X-Mailer: IncrediMail 2001 (1600532) From: "Jan Oravec" X-FID: FLAVOR00-NONE-0000-0000-000000000000 X-FVER: 2.0 X-CNT: ; X-Priority: 3 To: Subject: backward SQL query X-Archive-Number: 200202/448 X-Sequence-Number: 6869 --------------Boundary-00=_BTQ8G6G0000000000000 Content-Type: Multipart/Alternative; boundary="------------Boundary-00=_BTQ8BHK0000000000000" --------------Boundary-00=_BTQ8BHK0000000000000 Content-Type: Text/Plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable =0D I have WEB aplication, whitch browse some data from database. =0D 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.=0D =0D Thanks for your help.=20=20 --------------Boundary-00=_BTQ8BHK0000000000000 Content-Type: Text/HTML; charset="windows-1250" Content-Transfer-Encoding: quoted-printable =0D
 
I have WEB aplication, whitch browse= some=20 data from database.
Can anybody tell me how I can know, = which SQL=20 query was used for display this data, without know source of aplicati= on,=20 whitch use it and when I'm administrator of this database. I want it = use=20 for control which data are correct and whitch not.
 
Thanks for your=20 help.  
____________________________________________________
 =20 IncrediMail - Email has finally evolved -
Click=20 Here
--------------Boundary-00=_BTQ8BHK0000000000000-- --------------Boundary-00=_BTQ8G6G0000000000000 Content-Type: image/gif Content-Transfer-Encoding: base64 Content-ID: R0lGODlhFAAPALMIAP9gAM9gAM8vAM9gL/+QL5AvAGAvAP9gL////wAAAAAA AAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJFAAIACwA AAAAFAAPAAAEVRDJSaudJuudrxlEKI6BURlCUYyjKpgYAKSgOBSCDEuGDKgr AtC3Q/R+hkPJEDgYCjpKr5A8WK9OaPFZwHoPqm3366VKyeRtE30tVVRscMHD qV/u+AgAIfkEBWQACAAsAAAAABQADwAABBIQyUmrvTjrzbv/YCiOZGmeaAQA IfkECRQACAAsAgABABAADQAABEoQIUOrpXIOwrsPxiQUheeRAgUA49YNhbCq K1kS9grQhXGAhsDBUJgZAL2Dcqkk7ogFpvRAokSn0p4PO6UIuUsQggSmFjKX dAgRAQAh+QQFCgAIACwAAAAAFAAPAAAEEhDJSau9OOvNu/9gKI5kaZ5oBAAh +QQJFAAIACwCAAEAEAANAAAEShAhQ6ulcg7Cuw/GJBSF55ECBQDj1g2FsKor WRL2CtCFcYCGwMFQmBkAvYNyqSTuiAWm9ECiRKfSng87pQi5SxCCBKYWMpd0 CBEBACH5BAVkAAgALAAAAAAUAA8AAAQSEMlJq7046827/2AojmRpnmgEADs= --------------Boundary-00=_BTQ8G6G0000000000000-- From zakkr@zf.jcu.cz Thu Feb 28 11:55:29 2002 Received: from ara.zf.jcu.cz (ara.zf.jcu.cz [160.217.161.4]) by postgresql.org (Postfix) with ESMTP id 3A19B475469 for ; Thu, 28 Feb 2002 06:55:29 -0500 (EST) Received: from ara.zf.jcu.cz (LOCALHOST [127.0.0.1]) by LOCALHOST (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id g1SBt265032387; Thu, 28 Feb 2002 12:55:03 +0100 Received: (from zakkr@localhost) by ara.zf.jcu.cz (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) id g1SBt2kM032386; Thu, 28 Feb 2002 12:55:02 +0100 Date: Thu, 28 Feb 2002 12:55:02 +0100 From: Karel Zak To: Jan Oravec Cc: pgsql-sql@postgresql.org Subject: Re: backward SQL query Message-ID: <20020228125502.B20893@zf.jcu.cz> References: <3C7E15BF.000003.01684@elvin.intrak.tuke.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C7E15BF.000003.01684@elvin.intrak.tuke.sk>; from oravecja@intrak.tuke.sk on Thu, Feb 28, 2002 at 12:34:23PM +0100 X-Archive-Number: 200202/449 X-Sequence-Number: 6870 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 http://home.zf.jcu.cz/~zakkr/ C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz From mallah@trade-india.com Thu Feb 28 15:37:50 2002 Received: from trade-india.com (unknown [130.94.20.28]) by postgresql.org (Postfix) with SMTP id 07312475BB1 for ; Thu, 28 Feb 2002 10:37:50 -0500 (EST) Received: (qmail 5442 invoked from network); 28 Feb 2002 15:43:29 -0000 Received: from ptil-235-129-del.primus-india.net (HELO trade-india.com) (203.196.129.235) by 130.94.22.209 with SMTP; 28 Feb 2002 15:43:29 -0000 Message-ID: <3C7E4F96.622A82C4@trade-india.com> Date: Thu, 28 Feb 2002 21:11:10 +0530 From: Rajesh Kumar Mallah X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: Jan Oravec Cc: pgsql-sql@postgresql.org Subject: Re: backward SQL query References: <3C7E15BF.000003.01684@elvin.intrak.tuke.sk> <20020228125502.B20893@zf.jcu.cz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200202/451 X-Sequence-Number: 6872 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. >