Re: Per-query local timezone

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Per-query local timezone
Date: 2011-06-14 10:05:07
Message-ID: 20110614100506.GM2617@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 14, 2011 at 09:40:20AM +0000, Mark Morgan Lloyd wrote:

> Is it possible to incorporate SET TIMEZONE into a query, so that
> to_char(...'TZ') etc. is appropriately localised?

You seem to want "AT TIME ZONE".

Karsten
--
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2011-06-14 10:05:58 Re: Per-query local timezone
Previous Message Sim Zacks 2011-06-14 09:54:16 Re: determine client os