Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAlDO-0006F9-O3 for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jun 2016 21:40:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bAlDO-0000aN-Al for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Jun 2016 21:40:42 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bAlCk-0007SN-CO for pgsql-bugs@postgresql.org; Wed, 08 Jun 2016 21:40:02 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAlCi-0003g8-08 for pgsql-bugs@postgresql.org; Wed, 08 Jun 2016 21:40:01 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u58Ldpv10637; Wed, 8 Jun 2016 14:39:51 -0700 Subject: Re: BUG #14182: Wrong time stamp exactly at 1996 hour 3 To: olmozavala@gmail.com, pgsql-bugs@postgresql.org References: <20160608203733.5798.44629@wrigleys.postgresql.org> From: John R Pierce Message-ID: <3b57d30b-b468-d290-daf1-65b22b7af16f@hogranch.com> Date: Wed, 8 Jun 2016 14:39:52 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160608203733.5798.44629@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -3.3 (---) 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 6/8/2016 1:37 PM, olmozavala@gmail.com wrote: > If you create a table with just id and mydate (timestamp without zone) and > then you execute: > > INSERT INTO test (fecha) VALUES > (to_timestamp('07/04/1996/2','DD/MM/YY/HH24')) > INSERT INTO test (fecha) VALUES > (to_timestamp('07/04/1996/3','DD/MM/YY/HH24')) > > It should give you two different hours, but it will give you the same hour. > I was filling a very large database and this problem seems to appear only at > this specific date and time. that date/time is exactly when DST began that year in the USA... The function to_timestamp returns a timestamptz (timestamp with time zone). -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs