Re: timing a process

From: "Florian Helmberger" <f(dot)helmberger(at)uptime(dot)at>
To: "Zhang, Anna" <azhang(at)verisign(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: timing a process
Date: 2002-01-24 09:01:01
Message-ID: OPEOLKEAAIMGBAMJNACKAEPADHAA.f.helmberger@uptime.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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(at)postgresql(dot)org
> [mailto:pgsql-admin-owner(at)postgresql(dot)org]On Behalf Of Zhang, Anna
> Sent: Wednesday, January 23, 2002 10:25 PM
> To: pgsql-admin(at)postgresql(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Radu-Adrian Popescu 2002-01-24 10:56:55 Max. connections & overload
Previous Message Manuel Trujillo 2002-01-24 09:00:26 Re: Maximum Performance