Re: Text <-> C string - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Text <-> C string
Date
Msg-id 87lk4d7p6f.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Text <-> C string  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Text <-> C string  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Volkan YAZICI <yazicivo@ttmail.com> writes:
>> But I'd vote for TextPGetCString style Tom suggested for the eye-habit
>> compatibility with the rest of the code.
>
> If there are not additional votes, I'll go with TextPGetCString
> and CStringGetTextP.

I would have voted for text_to_cstring etc. I can see the logic for the above
but it's just such a pain to type...

Fwiw I didn't actually find text_cstring confusing because all our sql cast
functions are defined that way.


--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's Slony Replication
support!


pgsql-hackers by date:

Previous
From: Dan Searle
Date:
Subject: MemoryContextSwitchTo() confusion
Next
From: "Pavan Deolasee"
Date:
Subject: Re: MemoryContextSwitchTo() confusion