Re: Coding help

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Coding help
Date: 2003-11-10 01:44:40
Message-ID: 3FAEED88.9060807@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-11-10 01:47:03 Re: Coding help
Previous Message Tom Lane 2003-11-10 01:36:48 Re: Coding help