Re: C function accepting/returning cstring vs. text

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: C function accepting/returning cstring vs. text
Date: 2010-01-27 14:05:52
Message-ID: 162867791001270605k308e73e8i9ce5b2d5ab2a7464@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Christensen 2010-01-27 14:06:17 Re: Patch: psql \whoami option
Previous Message David Christensen 2010-01-27 14:01:04 Re: Patch: psql \whoami option