Re: C function accepting/returning cstring vs. text

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-hackers(at)postgresql(dot)org>, "Ivan Sergio Borgonovo" <mail(at)webthatworks(dot)it>
Subject: Re: C function accepting/returning cstring vs. text
Date: 2010-01-25 22:36:46
Message-ID: 4B5DC89E020000250002EBE2@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it> wrote:

The README files might be a good place to start, then browse code.

> Is there any part of the code from where I could learn about:
> - memory allocation for both cstring and text

src/backend/utils/mmgr/README

> - example of returning text (especially if size of out>in)
> - what should I take care of for encoding (what's really inside a
> tsvector, text, cstring)?

src/backend/utils/fmgr/README

-Kevin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2010-01-25 23:04:43 Re: Patch: libpq new connect function (PQconnectParams)
Previous Message Bruce Momjian 2010-01-25 22:29:54 Re: default pg_hba.conf tabulation