Re: Problems with a C function, pg_uname(), and String concatenation. - Mailing list pgsql-general

From Rafael Martinez
Subject Re: Problems with a C function, pg_uname(), and String concatenation.
Date
Msg-id 486A0E7D.9080001@usit.uio.no
Whole thread Raw
In response to Re: Problems with a C function, pg_uname(), and String concatenation.  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: Problems with a C function, pg_uname(), and String concatenation.
List 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.m.guerrero@usit.uio.no>
  Center for Information Technology Services
  University of Oslo, Norway

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

pgsql-general by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: multi-word expression full-text searching
Next
From: "Pavel Stehule"
Date:
Subject: Re: Problems with a C function, pg_uname(), and String concatenation.