Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFld3-0004Gu-W6 for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 14:26:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WFld3-0000hE-ET for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 14:26:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFld2-0000g3-Bv for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 14:26:32 +0000 Received: from mimolette.dalibo.net ([212.85.154.222]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFlcz-0002Hj-GH for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 14:26:31 +0000 Received: from [192.168.0.38] (ip-68.net-81-220-133.standre.rev.numericable.fr [81.220.133.68]) by mimolette.dalibo.net (Postfix) with ESMTPSA id 9A89C682005D; Tue, 18 Feb 2014 15:25:25 +0100 (CET) Message-ID: <53036D18.60806@dalibo.com> Date: Tue, 18 Feb 2014 15:24:24 +0100 From: Vik Fearing User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: miaoyimin@huawei.com, pgsql-bugs@postgresql.org Subject: Re: BUG #9265: why the same interval can't get the same timestamp? References: <20140218120621.24620.15178@wrigleys.postgresql.org> In-Reply-To: <20140218120621.24620.15178@wrigleys.postgresql.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 02/18/2014 01:06 PM, miaoyimin@huawei.com wrote: > The following bug has been logged on the website: > > Bug reference: 9265 > Logged by: yimin > Email address: miaoyimin@huawei.com > PostgreSQL version: 9.2.6 > Operating system: suse 10.3 > Description: > > postgres=# select ('epoch'::pg_catalog.timestamptz + 1386201600 * '1 > second'::pg_catalog.interval); > ?column? > ------------------------ > 2013-12-05 08:00:00+08 > (1 row) > > postgres=# select ('epoch'::pg_catalog.timestamptz + 16044 * '1 > day'::pg_catalog.interval); > ?column? > ------------------------ > 2013-12-05 07:30:00+08 > (1 row) > > postgres=# show timezone; > TimeZone > ------------------- > Asia/Kuala_Lumpur > (1 row) > > The timezone changed by thirty minutes on December 31, 1981 so the number of days since epoch is not the same as the number of seconds. -- Vik -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs