|
|
Choosing A Webhost: |
Re: [HACKERS] Re: double precision error with pg linux server, but not with: msg#00043db.postgresql.oledb.devel
Tom Lane wrote: > Shachar Shemesh <shachar@xxxxxxxxxxx> writes: > >> Tom Lane wrote: >> >>> No, not unless you can make the case why this handles NaNs and >>> denormalized numbers compatibly across platforms... >>> >>> >> NaNs and infinite (plus and minus) should not be a problem. >> > > Really? Need I point out that these concepts, let alone their > representation, are not standardized in non-IEEE float implementations? > So what? They only need be standardtized in our export format, which we define. That's why we define it, after all.... > >> I'm not sure what denormalized numbers are. >> > > You should find out before proposing representation replacements for > floats. > Yes, but we're still discussing the preliminary stages. At these stages, it is enough to know that they CAN be defined (and they can). > >> What is the scenario in which you would want to tell them apart? >> Likewise, would you really want to tell +0 and -0 apart? >> > > IIRC (it's been fifteen or so years since I did any serious numerical > analysis) the arguments in favor have mostly to do with preserving > maximal accuracy for intermediate results in a series of calculations. > So maybe you could claim that these arguments are not so relevant to > storage in a database. But personally I don't think it's the province > of a database to decide that it need not accurately preserve the data > it's given to store. > This is not data given to store. It's data being exported. I think you are failing to consider something. The simple truth of the matter is that drivers are used far more often to access the server than pqlib or direct TCP programming. OLE DB has been stagnant for over two years now, is only available for one platform, and the easiest install option for it is through the postgresql installer, and yet it is still the third most popular download on pgfoundry (with the .NET provider being #1). What I'm getting at is that drivers are important. It is important that they have good performance. It is important that they be stable. I really think the backend should take driver considerations more seriously. The suggested method, of switching to text mode, will surely work, but it will also hurt performance. I've said it before. I find it highly unlikely that the ARM FP format will have any problem with being exported, even to a 64bit IEEE number. Not knowing the FP format, but knowing the platform, it likely just got rid of all the corner cases (NaN, denormalized numbers) merely so they can implement it more efficiently in hardware. I find the chances that it will have a wider range than IEEE in either mantissa or exponent unlikely. The question here is a broader question, though. Should we strive for binary compatibility across all platforms of a given version? The benefit is faster drivers and being able to COPY across platforms (but, still, not across versions). The cost are a couple of types (I would really change timestamp too, while at it) that need a non-straight forward export/import function. Tom seems to think this is not a goal (though, aside from his disbelief that such a goal is attainable, I have heard no arguments against it). What do the other people think? Shachar
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [HACKERS] Re: double precision error with pg linux server, but not with windows pg server, Andrew Dunstan |
|---|---|
| Next by Date: | Re: double precision error with pg linux server, but not with windows pg server, Julian Heeb |
| Previous by Thread: | Re: [HACKERS] Re: double precision error with pg linux server, but not with windows pg server, Tom Lane |
| Next by Thread: | Re: Re: [Oledb-dev] double precision error with pg linux server, but not with windows pg server, Greg Smith |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |