pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: yangtao <yangtaoyours@126.com>
To: pgsql-general@lists.postgresql.org
Subject: timestamptz test failed by postgresql 6.5.0
Date: Mon, 4 Jan 2021 13:52:01 +0800 (CST)
Message-ID: <59c4bbda.277f.176cbf3cda7.Coremail.yangtaoyours@126.com> (raw)

Recently, I compile the Postgresql 9.6.0 on Linux by myself. However, I meet one problem about the timestamptz.sql test case.
The expected timestamptz.out is different from the result of timestamptz.out for ime zone America/Caracas and
America/Santiago


Part of expected timestamptz.out :
DROP TABLE TIMESTAMPTZ_TST;
-- test timestamptz constructors
set TimeZone to 'America/Santiago';
-- numeric timezone
SELECT make_timestamptz(1973, 07, 15, 08, 15, 55.33);
        make_timestamptz         
---------------------------------
 Sun Jul 15 08:15:55.33 1973 CLT
(1 row)


SELECT make_timestamptz(1973, 07, 15, 08, 15, 55.33, '+2');
        make_timestamptz         
---------------------------------
 Sun Jul 15 02:15:55.33 1973 CLT


Part of the result  timestamptz.out :
DROP TABLE TIMESTAMPTZ_TST;
-- test timestamptz constructors
set TimeZone to 'America/Santiago';
-- numeric timezone
SELECT make_timestamptz(1973, 07, 15, 08, 15, 55.33);
        make_timestamptz         
---------------------------------
 Sun Jul 15 08:15:55.33 1973 -04
(1 row)


SELECT make_timestamptz(1973, 07, 15, 08, 15, 55.33, '+2');
        make_timestamptz         
---------------------------------
 Sun Jul 15 02:15:55.33 1973 -04


I don't why the timezone in the output "CLT" becomes "-04" in the output. Could anyone please give me some idea to find the trouble cause?
Thanks!




Best Regards!
Tao

view thread (5+ messages)  latest in thread

Message-ID: <59c4bbda.277f.176cbf3cda7.Coremail.yangtaoyours@126.com>
Permalink:  ../59c4bbda.277f.176cbf3cda7.Coremail.yangtaoyours@126.com/
Also on:    postgresql.org/message-id/59c4bbda.277f.176cbf3cda7.Coremail.yangtaoyours@126.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: yangtaoyours@126.com
  Subject: Re: timestamptz test failed by postgresql 6.5.0
  In-Reply-To: <59c4bbda.277f.176cbf3cda7.Coremail.yangtaoyours@126.com>
  References: <59c4bbda.277f.176cbf3cda7.Coremail.yangtaoyours@126.com>

* 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