Re: Coding help - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Coding help
Date
Msg-id 10802.1068428208@sss.pgh.pa.us
Whole thread Raw
In response to Re: Coding help  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Coding help  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
>> ... you can use code comparable to define.c's defGetInt64()
>> to convert the Value node into a numeric OID, ie, either do intVal() or
>> a call of oidin().

> 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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: Coding help
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: Coding help