Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: [COMMITTERS...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 9280 of 9812
Post > Topic >>

Re: [COMMITTERS] pgsql: Remove typename from A_Const.

by tgl@[EMAIL PROTECTED] (Tom Lane) Apr 29, 2008 at 02:12 PM

alvherre@[EMAIL PROTECTED]
 (Alvaro Herrera) writes:
> Remove typename from A_Const.

I'm thinking this could be cleaned up further.  The patch as applied
removes the ::int4 typename decoration that had been inserted by
makeIntConst(), while leaving in place the ::float8 decoration inserted
by makeFloatConst().  The kindest thing that can be said about that
is that it's inconsistent.  Now as far as I can see in a look through
gram.y, these routines (and makeAConst) were used only in places where
the typename qualification was really unnecessary, that is typmods
and GUC variable values and so on, not general expression contexts where
we might really need to determine a data type for the constant.  So what
I'm thinking is that we should get rid of the ::float8 decoration too,
and thereby be able to revert some of the ugly code added elsewhere such
as guc.c.

Is there a reason it was done this way that I'm missing?

			regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 3 Posts in Topic:
Re: [COMMITTERS] pgsql: Remove typename from A_Const.
tgl@[EMAIL PROTECTED] (T  2008-04-29 14:12:23 
Re: [COMMITTERS] pgsql: Remove typename from A_Const.
alvherre@[EMAIL PROTECTED  2008-04-29 16:07:38 
Re: [COMMITTERS] pgsql: Remove typename from A_Const.
tgl@[EMAIL PROTECTED] (T  2008-04-29 16:15:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 13:09:35 CDT 2008.