X-Original-To: pgsql-ports-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6545E9FA5C3 for ; Thu, 8 Jun 2006 21:10:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 49482-04 for ; Thu, 8 Jun 2006 21:10:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id A0F199FA3CD for ; Thu, 8 Jun 2006 21:10:45 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k590Aimo004067; Thu, 8 Jun 2006 20:10:44 -0400 (EDT) To: Match.Grun@thomson.com cc: pgsql-ports@postgresql.org Subject: Re: Horology Test Case Fails with Sun Compiler In-reply-to: <4AAF1740D046264BAD7CF21F81BADE5A02A85B5C@tshuscodenmbx01.ERF.THOMSON.COM> References: <4AAF1740D046264BAD7CF21F81BADE5A02A85B5C@tshuscodenmbx01.ERF.THOMSON.COM> Comments: In-reply-to message dated "Thu, 08 Jun 2006 17:22:20 -0600" Date: Thu, 08 Jun 2006 20:10:44 -0400 Message-ID: <4066.1149811844@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/3 X-Sequence-Number: 2444 writes: > After building Postgres 8.0.3, Solaris 8, Sun compiler v 5.7, > I get the following diff with the horology test case: Seems like either interval_reltime() or reltime2tm() (both in src/backend/utils/adt/nabstime.c) must be screwing up. I've never seen a similar report so I think you've got a broken compiler, but feel free to look for a workaround ... reltime is a deprecated type anyway so you could just ignore it, but the $64 question here is whether it is a compiler bug and if so whether it also hit any places that're more important. The code in those two functions is not all that different from code elsewhere in the datetime support. BTW, are you using --enable-integer-datetimes? That changes this code quite a bit. regards, tom lane