Re: Coding help - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Coding help
Date
Msg-id 3FAEED88.9060807@familyhealth.com.au
Whole thread Raw
In response to Re: Coding help  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Coding help
List pgsql-hackers
>>I thought the whole problem here is that OIDs are unsigned ints, hence 
>>intVal() won't allow the highest OIDs?
> 
> 
> Exactly.  That's why you need to handle T_Float too.  See the int8
> example, which has just the same problem.

It occurs to me then that I could just then use FloatOnly in the grammar 
and   then just attempt to coerce that to an Oid using oidin?  Floats 
are stored as strings, so that'd be OK, and the oidin function would 
barf if it was an illegal uint?

Chris





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Coding help
Next
From: Tom Lane
Date:
Subject: Re: Coding help