pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carsten Klein <c.klein@datagis.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Strange results when casting string to double
Date: Fri, 18 Feb 2022 10:32:27 -0500
Message-ID: <3950189.1645198347@sss.pgh.pa.us> (raw)
In-Reply-To: <4592fac1-05b2-f775-3332-c5a7d4c65b9d@datagis.com>
References: <0d711ac6-6975-ae07-8963-aa91c6500776@datagis.com>
	<f3575aaf-98a8-6941-7843-ba1a0d78514f@enterprisedb.com>
	<4592fac1-05b2-f775-3332-c5a7d4c65b9d@datagis.com>

Carsten Klein <c.klein@datagis.com> writes:
> On 18.02.2022 13:28, Peter Eisentraut wrote:
>> float8in() really just calls the operating system's strtod() function. I 
>> would test that one directly with a small C program.

> That's what I did. Here's my small C program: (nicht lachen *g*)

Yeah, you said that upthread, which makes the whole thing pretty
baffling.  One possible explanation is that your small program got linked
against a different version of libc than what the Postgres backend is
using ("ldd" would help you check that, but given the age of the Postgres
installation, this seems plausible).  Beyond that it's hard to think
of any explanation other than hardware fault or corrupted executable.

			regards, tom lane





view thread (24+ messages)  latest in thread

Message-ID: <3950189.1645198347@sss.pgh.pa.us>
Permalink:  ../3950189.1645198347@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3950189.1645198347@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, c.klein@datagis.com, peter.eisentraut@enterprisedb.com
  Subject: Re: Strange results when casting string to double
  In-Reply-To: <3950189.1645198347@sss.pgh.pa.us>
  References: <0d711ac6-6975-ae07-8963-aa91c6500776@datagis.com> <f3575aaf-98a8-6941-7843-ba1a0d78514f@enterprisedb.com> <4592fac1-05b2-f775-3332-c5a7d4c65b9d@datagis.com> <3950189.1645198347@sss.pgh.pa.us>

* 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