Re: C function accepting/returning cstring vs. text - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: C function accepting/returning cstring vs. text
Date
Msg-id 162867791001270605k308e73e8i9ce5b2d5ab2a7464@mail.gmail.com
Whole thread Raw
In response to Re: C function accepting/returning cstring vs. text  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List pgsql-hackers
> Is there any difference from function returning text and function
> returning cstring?
>

text is varlena type - it could be TOASTed, comprimated. It is better
integrated to PostgreSQL world. cstring is just C zero terminated
string - so good for system call, call some external libraries.

Regards
Pavel Stehule


pgsql-hackers by date:

Previous
From: David Christensen
Date:
Subject: Re: Patch: psql \whoami option
Next
From: David Christensen
Date:
Subject: Re: Patch: psql \whoami option