Re: RES: RESTORING A DATABASE WITH DIFFERENT TIMEZONES - Mailing list pgsql-general

From Richard Huxton
Subject Re: RES: RESTORING A DATABASE WITH DIFFERENT TIMEZONES
Date
Msg-id 458ACD3A.4000708@archonet.com
Whole thread Raw
In response to RES: RESTORING A DATABASE WITH DIFFERENT TIMEZONES  ("Rodrigo Sakai" <rodrigo.sakai@zanthus.com.br>)
List pgsql-general
Rodrigo Sakai wrote:
>   Actually I want the server to behave in the time zone 'BRST' (this is
> already configured). But the machine where the dump was done was with a time
> zone that is -2 from GMT! So I need to restore this dump in my server, but
> maintain the 00:00:00 at the hour part!
>
>   Is there a way???


icondirect=> SET TimeZone = 'America/New_York';
SET
icondirect=> SELECT now();
               now
-------------------------------
  2006-12-21 13:03:44.334581-05
(1 row)

icondirect=> SET TimeZone = 'Europe/London';
SET
icondirect=> SELECT now();
               now
-------------------------------
  2006-12-21 18:03:52.141592+00

icondirect=> ALTER DATABASE SET TimeZone = 'America/New_York';

You can also do ALTER USER ... (both take effect when you log in).

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: RESTORING A DATABASE WITH DIFFERENT TIMEZONES
Next
From: Benjamin Smith
Date:
Subject: Partitioning Vs. Split Databases - performance?