pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: soni de <soni.de@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Regarding Timezone
Date: Tue, 19 Jun 2007 12:20:10 -0400
Message-ID: <504.1182270010@sss.pgh.pa.us> (raw)
In-Reply-To: <9f2e40a90706190042x6016b395od1eca739d5205ebd@mail.gmail.com>
References: <9f2e40a90706190042x6016b395od1eca739d5205ebd@mail.gmail.com>

"soni de" <soni.de@gmail.com> writes:
> But we want to set this timezone parameter to IST.

Which "IST" are you interested in?  Irish, Israel, or Indian Standard Time?
Postgres prefers to use the zic timezone names, which are less
ambiguous.  Try this to see likely options:

regression=# select * from pg_timezone_names where abbrev = 'IST';
     name      | abbrev | utc_offset | is_dst
---------------+--------+------------+--------
 Asia/Calcutta | IST    | 05:30:00   | f
 Asia/Colombo  | IST    | 05:30:00   | f
 Europe/Dublin | IST    | 01:00:00   | t
 Eire          | IST    | 01:00:00   | t
(4 rows)

If you're after Indian Standard Time, set timezone to 'Asia/Calcutta'.
You'll probably also want to set timezone_abbreviations to 'India' so
that "IST" is interpreted the way you want in timestamp datatype input.
See
http://www.postgresql.org/docs/8.2/static/datetime-config-files.html

			regards, tom lane



view thread (4+ messages)

Message-ID: <504.1182270010@sss.pgh.pa.us>
Permalink:  ../504.1182270010@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/504.1182270010@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, soni.de@gmail.com
  Subject: Re: Regarding Timezone
  In-Reply-To: <504.1182270010@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox