Re: How do we get the Client-Time and Server-Time from psql ?

From: Adrian von Bidder <avbidder(at)fortytwo(dot)ch>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How do we get the Client-Time and Server-Time from psql ?
Date: 2010-06-02 17:36:41
Message-ID: 201006021936.46801@fortytwo.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday 02 June 2010 13.46:47 Stephen Frost wrote:
> * raghavendra t (raagavendra(dot)rao(at)gmail(dot)com) wrote:
> > How do i get the client time and server time. I am connecting remotely.
> > If i give SELECT CURRENT_TIME;,it shows the server time. How do we get
> > the client time ?
>
> uh, \! date
> ?

Which is a feature of the psql cmdline frontend. Unless Raghavendra either
only browses the db wit psql or does ugly stuff like driving the psql via
pipes, the \! escape is not available in applications using pg.
cheers
-- vbi

--
Today is Pungenday, the 7th day of Confusion in the YOLD 3176

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian von Bidder 2010-06-02 17:44:18 Re: What Linux edition we should chose?
Previous Message Chris Browne 2010-06-02 17:32:48 Re: What Linux edition we should chose?