Hi.

You can try something like this:

  time psql template1 postgres -c "select usename from pg_user"

Cheers,
Florian

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Zhang, Anna
> Sent: Wednesday, January 23, 2002 10:25 PM
> To: [EMAIL PROTECTED]
> 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


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to