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

From Alvaro Herrera
Subject Re: C function accepting/returning cstring vs. text
Date
Msg-id 20100127144946.GB3559@alvh.no-ip.org
Whole thread Raw
In response to Re: C function accepting/returning cstring vs. text  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Responses Re: C function accepting/returning cstring vs. text  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List pgsql-hackers
Ivan Sergio Borgonovo wrote:

> What's not included in "on SQL level almost everything is text"?

input and output functions always use cstring rather than text.  The I/O
functions are normally not used directly at the SQL level.

> There are a lot of functions in contrib taking cstring input and
> returning cstring output.
> Are they just in the same "special" class of [type]in, [type]out
> [type]recv... functions?

Probably, but I didn't check.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Ivan Sergio Borgonovo
Date:
Subject: Re: C function accepting/returning cstring vs. text
Next
From: Peter Eisentraut
Date:
Subject: Re: [COMMITTERS] pgsql: Remove tabs in SGML.