Re: numeric hierarchy again (was Re: floor function in 7.3b2) - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: numeric hierarchy again (was Re: floor function in 7.3b2)
Date
Msg-id 200210041745.g94Hjw426805@candle.pha.pa.us
Whole thread Raw
In response to Re: numeric hierarchy again (was Re: floor function in 7.3b2)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: numeric hierarchy again (was Re: floor function in 7.3b2)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Do we know that defaulting floating constants will not be a performance
> > hit?
> 
> Uh ... what's your concern exactly?  The datatype coercion (if any) will
> happen once at parse time, not at runtime.

Yes, I realize it is during parsing.  I was just wondering if making
constants coming in from the parser NUMERIC is a performance hit?  I see
in gram.y that FCONST comes in as a Float so I don't even see were we
make it NUMERIC.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Justin Clift
Date:
Subject: Re: Threaded Sorting
Next
From: Bruce Momjian
Date:
Subject: Re: CURRENT_TIMESTAMP