Re: Exponential notation bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Marcos Pegoraro <marcos(at)f10(dot)com(dot)br>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Exponential notation bug
Date: 2025-04-04 16:17:52
Message-ID: 1911853.1743783472@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> This seems like a question for -general or some other user-focused
> mailing list, not hackers. At any rate, I don't see how 1e4 could just
> be "ignored", but as Maciek points out, 1e4 and 10000 are of different
> data types, which seems likely to be relevant somehow.

I am also wondering about careless whitespace.

postgres=# select 9/1e1;
?column?
------------------------
0.90000000000000000000
(1 row)

postgres=# select 9/1 e1;
e1
----
9
(1 row)

In any case, I tried copying-and-pasting parts of the originally
mentioned query, and I saw nothing that looked like misbehavior.
Please show an exact, self-contained test case if you want us
to believe there's a bug here.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2025-04-04 16:19:46 Re: New criteria for autovacuum
Previous Message Melanie Plageman 2025-04-04 16:17:19 Re: autoprewarm_dump_now