how do i find out how long a query took?

From: "Andy Kriger" <akriger(at)greaterthanone(dot)com>
To: "Pgsql-General" <pgsql-general(at)postgresql(dot)org>
Subject: how do i find out how long a query took?
Date: 2002-09-30 15:51:14
Message-ID: OJEFIHHAALOBKKJEOMBDEEIMCBAA.akriger@greaterthanone.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a psql function I can call after making a query to find out how
long the last query took? (e.g. after running a create index on a table with
a lot of records, I would like to know how long it took). I know I could do
this using JDBC and wrapping the query in getTimeMillis() but I'm curious if
psql has a built-in function or if the client has a utility cmd.

thx
andy

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josh Berkus 2002-09-30 15:54:31 Re: [GENERAL] arrays
Previous Message Colin Wiel 2002-09-30 15:41:20 psql scripts