Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebrak-0006kz-W8 for pgsql-docs@arkaria.postgresql.org; Wed, 17 Jan 2018 17:33:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebrak-0005V2-BI for pgsql-docs@arkaria.postgresql.org; Wed, 17 Jan 2018 17:33:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ebrak-0005Uo-6A for pgsql-docs@lists.postgresql.org; Wed, 17 Jan 2018 17:33:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ebrag-0003pd-Br for pgsql-docs@lists.postgresql.org; Wed, 17 Jan 2018 17:33:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w0HHXTl7009008; Wed, 17 Jan 2018 12:33:29 -0500 From: Tom Lane To: greg.brown@csgi.com cc: pgsql-docs@lists.postgresql.org Subject: Re: pg_timezone_names In-reply-to: <20180117171641.3623.54337@wrigleys.postgresql.org> References: <20180117171641.3623.54337@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Doc_comments_form?= message dated "Wed, 17 Jan 2018 17:16:41 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9006.1516210409.1@sss.pgh.pa.us> Date: Wed, 17 Jan 2018 12:33:29 -0500 Message-ID: <9007.1516210409@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Doc_comments_form?= writes: > We are exporting data from postgres into another "all in one" data store, > and i had a quick question regarding the time offsets. The UTC_OFFSET, does > it change when IS_DST is true/false? Yes; utc_offset reflects the zone's current offset from UTC, so it changes with the seasons if the zone has DST laws. > Or do I need to take the UTC_OFFSET > interval and then possibly add 1 more if IS_DST is true? Prepare to be disappointed; you can't assume it works like that. See the thread starting here: http://mm.icann.org/pipermail/tz/2017-December/025682.html You haven't said what it is you are hoping to accomplish, so it's hard to say if there's some safer way to do it. regards, tom lane