Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFlUO-0003xv-Ac for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 14:17:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WFlUN-0007AT-QN for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 14:17:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFjS7-0007IC-W5 for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 12:07:08 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFjS4-0007lX-OK for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 12:07:07 +0000 MIME-Version: 1.0 Subject: BUG #9265: why the same interval can't get the same timestamp? To: pgsql-bugs@postgresql.org From: miaoyimin@huawei.com Date: Tue, 18 Feb 2014 12:06:21 +0000 Message-ID: <20140218120621.24620.15178@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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) postgres=# select * from version(); version -------------------------------------------------------------------------------------------------- PostgreSQL 9.2.6 on i686-pc-linux-gnu, compiled by gcc (GCC) 4.1.2 20070115 (SUSE Linux), 32-bit (1 row) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs