debugging queries from psql

From: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
To: "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: debugging queries from psql
Date: 2004-04-05 14:29:54
Message-ID: 40716D62.8040200@trade-india.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2004-04-05 14:52:12 Re: Do Petabyte storage solutions exist?
Previous Message Jaime Casanova 2004-04-05 12:57:09 [ODBC] psqlodbc problem?