From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: debugging queries from psql
Date: Mon, 05 Apr 2004 19:59:54 +0530
Message-ID: <40716D62.8040200@trade-india.com> (raw)
Greeting,
i have 2 identical queries. One of that finish faast another takes ages.
there are couble of trigers that run on update. I want to know where
exactly the sencond query takes time.
is there any way to increase debug logging from the psql prompt
so that i can see whats going behind?
Regds
Mallah.
tradein_clients=# UPDATE users set last_visit=now() WHERE userid= 34866;
UPDATE 1
Time: 436.591 ms
tradein_clients=# UPDATE users set last_visit=now() WHERE userid= 72643;
Time: Takes ages
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-admin@postgresql.org
Cc: mallah@trade-india.com
Subject: Re: debugging queries from psql
In-Reply-To: <40716D62.8040200@trade-india.com>
References: <40716D62.8040200@trade-india.com>
* 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