From: Papp Gyozo <pgerzson@freestart.hu>
To: pgsql-php@postgresql.org
Subject: Re: resource logging to optimize DBMS queries: how match access_log to pg log?
Date: Sun, 3 Mar 2002 11:32:19 +0100
Message-ID: <002d01c1c29e$c6bed120$01fdfea9@jaguar> (raw)
References: <02030118361905.01861@sandino.dnsalias.org>
<02030215254105.03865@sandino.dnsalias.org>
just a question:
have you tried to trace the connection?
It may reveal some additional information, may not.
[pg_trace() pg_untrace()]
----- Original Message -----
From: "Scott Weikart" <ScottW@benetech.org>
To: <pgsql-php@postgresql.org>
Cc: "Scott Weikart" <scottw@benetech.org>
Sent: Sunday, March 03, 2002 12:25 AM
Subject: Re: [PHP] resource logging to optimize DBMS queries: how match access_log to pg log?
| Responding to my own email...
|
| On Friday 01 March 2002 6:36 pm, Scott Weikart wrote:
| > But, how can I match the PHP log with the PID of the database
| > connection? Is there an SQL command I can run to find out my
| > connections PID, or some other identifier that I can put in
| > PostgreSQL's log?
|
| I just figured out the obvious solution to my first problem: don't
| rely on the PostgreSQL log, instead have the PHP application log the
| queries itself.
|
| However, I would still like to know the answer to this problem:
|
| > Also, is there a query I can run that will quantify the amount of
| > resources that PostgreSQL had to use to satisfy all the queries made
| > during the connection?
|
| -scott
|
| ---------------------------(end of broadcast)---------------------------
| TIP 3: if posting/reading through Usenet, please send an appropriate
| subscribe-nomail command to majordomo@postgresql.org so that your
| message can get through to the mailing list cleanly
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: pgerzson@freestart.hu
Subject: Re: resource logging to optimize DBMS queries: how match access_log to pg log?
In-Reply-To: <002d01c1c29e$c6bed120$01fdfea9@jaguar>
References: <02030118361905.01861@sandino.dnsalias.org> <02030215254105.03865@sandino.dnsalias.org> <002d01c1c29e$c6bed120$01fdfea9@jaguar>
* 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