From: Florian Helmberger <f.helmberger@uptime.at>
To: Zhang, Anna <azhang@verisign.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: timing a process
Date: Thu, 24 Jan 2002 10:01:01 +0100
Message-ID: <OPEOLKEAAIMGBAMJNACKAEPADHAA.f.helmberger@uptime.at> (raw)
In-Reply-To: <5511D658682A7740BA295CCF1E1233A635A838@vsvapostal2.bkup3>
Hi.
You can try something like this:
time psql template1 postgres -c "select usename from pg_user"
Cheers,
Florian
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Zhang, Anna
> Sent: Wednesday, January 23, 2002 10:25 PM
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] timing a process
>
>
> Hi All,
>
> I like to know how to timing a process? like in oracle sqlplus, we can set
> timing on, then execute a statement, such way we can know how long the
> process takes. In psql, is there such feature?
>
>
> Anna Zhang
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
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: f.helmberger@uptime.at, azhang@verisign.com
Subject: Re: timing a process
In-Reply-To: <OPEOLKEAAIMGBAMJNACKAEPADHAA.f.helmberger@uptime.at>
References: <5511D658682A7740BA295CCF1E1233A635A838@vsvapostal2.bkup3> <OPEOLKEAAIMGBAMJNACKAEPADHAA.f.helmberger@uptime.at>
* 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