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:23:30
Message-ID: 3FAEE892.1010408@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


>>| COMMENT ON LARGE OBJECT NumericOnly IS comment_text
>> n->objname = makeList1(makeAConst($5));
>
>
> Forget the makeAConst step --- it's just wasted cycles. In the
> execution routine, 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? If that's not the case, then the
easy solution is to just use an IConst or whatever it's called. (Which
I had working before).

Chris

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-11-10 01:36:48 Re: Coding help
Previous Message Gaetano Mendola 2003-11-10 00:24:46 Re: Autocomplete <TAB> on Postgres7.4beta5 not working?