Re: resource logging to optimize DBMS queries: how match access_log to pg log?

From: Scott Weikart <ScottW(at)benetech(dot)org>
To: pgsql-php(at)postgresql(dot)org
Cc: Scott Weikart <scottw(at)benetech(dot)org>
Subject: Re: resource logging to optimize DBMS queries: how match access_log to pg log?
Date: 2002-03-02 23:25:41
Message-ID: 02030215254105.03865@sandino.dnsalias.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Papp Gyozo 2002-03-03 10:32:19 Re: resource logging to optimize DBMS queries: how match access_log to pg log?
Previous Message Scott Weikart 2002-03-02 02:36:19 resource logging to optimize DBMS queries: how match access_log to pg log?