Re: Time Stamp

From: Richard Huxton <dev(at)archonet(dot)com>
To: Hrishikesh Deshmukh <hdeshmuk(at)gmail(dot)com>
Cc: Postgresql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Time Stamp
Date: 2005-03-21 15:57:38
Message-ID: 423EEEF2.1010800@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hrishikesh Deshmukh wrote:
> Hi All,
>
> I want to get a "timestamp" of the queries that i run!
> Is there a builtin command to do this/ does one need to write a
> function/stored procedure!
> Any pointers will help.

You don't say where you want this "timestamp".

In psql look into "\timing" (see the man page)
To record this in the logs, see the configuration section of the manual,
specifically "Error Reporting and Logging"

--
Richard Huxton
Archonet Ltd

In response to

  • Time Stamp at 2005-03-21 15:29:51 from Hrishikesh Deshmukh

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Howie 2005-03-21 15:58:27 Re: Help with transactions
Previous Message Scott Marlowe 2005-03-21 15:50:32 Re: Time Stamp