Re: Coding help - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Coding help
Date
Msg-id 3205.1068390606@sss.pgh.pa.us
Whole thread Raw
In response to Re: Coding help  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Coding help
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> | 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().
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Coding help
Next
From: Roger Leigh
Date:
Subject: New database access library, libpqxx-object