Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 02 June 2010 13.46:47 Stephen Frost wrote:
> * raghavendra t (raagavendra.rao@xxxxxxxxx) 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

Attachment: signature.asc
Description: This is a digitally signed message part.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux