Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group