pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
timestamptz test failed by postgresql 6.5.0
5+ messages / 2 participants
[nested] [flat]

* timestamptz test failed by postgresql 6.5.0
@ 2021-01-04 05:52  yangtao <yangtaoyours@126.com>
  0 siblings, 1 reply; 5+ messages in thread

From: yangtao @ 2021-01-04 05:52 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: timestamptz test failed by postgresql 6.5.0
@ 2021-01-04 06:07  Tom Lane <tgl@sss.pgh.pa.us>
  parent: yangtao <yangtaoyours@126.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2021-01-04 06:07 UTC (permalink / raw)
  To: yangtao <yangtaoyours@126.com>; +Cc: pgsql-general@lists.postgresql.org

yangtao <yangtaoyours@126.com> writes:
> 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

Hm, did you use configure --with-system-tzdata?  If so, this is not
terribly surprising; the 9.6.0 test cases rely on the behavior of the
IANA timezone data as it stood at the time, and those zones changed
since then.

Is there a reason you're trying to build 9.6.0 rather than 9.6.latest,
which includes a fix for this [1] as well as hundreds of
far-more-significant bugs?

			regards, tom lane

[1] https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=d8ec6b9c8c265c2f29b1c0e0e...





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re:Re: timestamptz test failed by postgresql 6.5.0
@ 2021-01-04 06:26  yangtao <yangtaoyours@126.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 5+ messages in thread

From: yangtao @ 2021-01-04 06:26 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general@lists.postgresql.org

Tom, Thanks!
Yes, I compile it by configure --with-system-tzdata, should I remove it?
What's more, because some other components dependency, I must use version 9.6.0.
I also have tried the 9.6.5 version, find the timestamptz test case is updated.






Best Regards!
Tao








At 2021-01-04 14:07:39, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
>yangtao <yangtaoyours@126.com> writes:
>> 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
>
>Hm, did you use configure --with-system-tzdata?  If so, this is not
>terribly surprising; the 9.6.0 test cases rely on the behavior of the
>IANA timezone data as it stood at the time, and those zones changed
>since then.
>
>Is there a reason you're trying to build 9.6.0 rather than 9.6.latest,
>which includes a fix for this [1] as well as hundreds of
>far-more-significant bugs?
>
>			regards, tom lane
>
>[1] https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=d8ec6b9c8c265c2f29b1c0e0e...
>


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: timestamptz test failed by postgresql 6.5.0
@ 2021-01-04 06:36  Tom Lane <tgl@sss.pgh.pa.us>
  parent: yangtao <yangtaoyours@126.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Tom Lane @ 2021-01-04 06:36 UTC (permalink / raw)
  To: yangtao <yangtaoyours@126.com>; +Cc: pgsql-general@lists.postgresql.org

yangtao  <yangtaoyours@126.com> writes:
> Yes, I compile it by configure --with-system-tzdata, should I remove it?
> What's more, because some other components dependency, I must use version 9.6.0.

No.  For god's sake, fix whatever components you are using that think
they must have 9.6.0 rather than 9.6.later.  Read the release notes [1].
Insisting on 9.6.0 four years later is professional malpractice.

(I'll not even get into the question of whether you should be installing
some later release branch than 9.6.x; but I can't help noting that 9.6's
EOL is 11 months away.)

			regards, tom lane

[1] https://www.postgresql.org/docs/release/





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re:Re: timestamptz test failed by postgresql 6.5.0
@ 2021-01-04 06:41  yangtao <yangtaoyours@126.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: yangtao @ 2021-01-04 06:41 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general@lists.postgresql.org

em~~~,  I read the release notes [1] right now.
I try my best fix it as you suggested, and persuade my partners to not use version 9.6.0. 
Thanks for your help!


Best Regards!
Tao














At 2021-01-04 14:36:30, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
>yangtao  <yangtaoyours@126.com> writes:
>> Yes, I compile it by configure --with-system-tzdata, should I remove it?
>> What's more, because some other components dependency, I must use version 9.6.0.
>
>No.  For god's sake, fix whatever components you are using that think
>they must have 9.6.0 rather than 9.6.later.  Read the release notes [1].
>Insisting on 9.6.0 four years later is professional malpractice.
>
>(I'll not even get into the question of whether you should be installing
>some later release branch than 9.6.x; but I can't help noting that 9.6's
>EOL is 11 months away.)
>
>			regards, tom lane
>
>[1] https://www.postgresql.org/docs/release/


^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2021-01-04 06:41 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 05:52 timestamptz test failed by postgresql 6.5.0 yangtao <yangtaoyours@126.com>
2021-01-04 06:07 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-01-04 06:26   ` yangtao <yangtaoyours@126.com>
2021-01-04 06:36     ` Tom Lane <tgl@sss.pgh.pa.us>
2021-01-04 06:41       ` yangtao <yangtaoyours@126.com>

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