Re: Coding help

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Coding help
Дата
Msg-id 3FAEE892.1010408@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Coding help  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Coding help
Список 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
whateverit's called. (Which 
 
I had working before).

Chris



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Performance features the 4th
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Coding help