Re: Problems with a C function, pg_uname(), and String concatenation.

From: Rafael Martinez <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Problems with a C function, pg_uname(), and String concatenation.
Date: 2008-07-01 11:01:17
Message-ID: 486A0E7D.9080001@usit.uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pavel Stehule wrote:
> hello
> try
>
> memcpy(VARDATA(result),uname_pointer.release,strlen(uname_pointer.release));
> SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ);
>
[.........]

This a 8.2.x system. SET_VARSIZE is not available.

Thanks for your time.
regards
--
Rafael Martinez, <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no>
Center for Information Technology Services
University of Oslo, Norway

PGP Public Key: http://folk.uio.no/rafael/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2008-07-01 11:06:40 Re: Problems with a C function, pg_uname(), and String concatenation.
Previous Message Teodor Sigaev 2008-07-01 10:49:05 Re: multi-word expression full-text searching