Re: C function accepting/returning cstring vs. text

From: Alvaro Herrera <alvherre(at)commandprompt(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:49:46
Message-ID: 20100127144946.GB3559@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2010-01-27 14:52:00 Re: [COMMITTERS] pgsql: Remove tabs in SGML.
Previous Message Ivan Sergio Borgonovo 2010-01-27 14:40:42 Re: C function accepting/returning cstring vs. text