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

Поиск
Список
Период
Сортировка
От Adrian von Bidder
Тема Re: How do we get the Client-Time and Server-Time from psql ?
Дата
Msg-id 201006021936.46801@fortytwo.ch
обсуждение исходный текст
Ответ на Re: How do we get the Client-Time and Server-Time from psql ?  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-general
On Wednesday 02 June 2010 13.46:47 Stephen Frost wrote:
> * raghavendra t (raagavendra.rao@gmail.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

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: libreadline and Debian 5 - not missing just badly named
Следующее
От: Adrian von Bidder
Дата:
Сообщение: Re: What Linux edition we should chose?