Re: [HACKERS] clone varlena function

2008-02-02 Thread Pavel Stehule
On 02/02/2008, Tom Lane <[EMAIL PROTECTED]> wrote: > "Pavel Stehule" <[EMAIL PROTECTED]> writes: > > I am cleaning orafce module and I would to eliminate duplicit code > > with core. Is in core similar macro or function? > > datumCopy? > yes, it is it. thank you Pavel Stehule >

Re: [HACKERS] clone varlena function

2008-02-02 Thread Tom Lane
"Pavel Stehule" <[EMAIL PROTECTED]> writes: > I am cleaning orafce module and I would to eliminate duplicit code > with core. Is in core similar macro or function? datumCopy? regards, tom lane ---(end of broadcast)--- TIP 6:

[HACKERS] clone varlena function

2008-02-02 Thread Pavel Stehule
Hello, I am cleaning orafce module and I would to eliminate duplicit code with core. Is in core similar macro or function? text* ora_clone_text(text *t) { text *result; result = palloc(VARSIZE(t)); SET_VARSIZE(result, VARSIZE(t)); memcpy(VARDATA(result), VARDATA(t