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