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

From Alvaro Herrera
Subject Re: Text <-> C string
Date
Msg-id 20080320123651.GA6235@alvh.no-ip.org
Whole thread Raw
In response to Re: Text <-> C string  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Text <-> C string  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Gregory Stark wrote:
> "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...

+1 for text_to_cstring et al.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: "korry"
Date:
Subject: Re: MemoryContextSwitchTo() confusion
Next
From: Martijn van Oosterhout
Date:
Subject: Re: [GENERAL] tsearch2 in postgresql 8.3.1 - invalid byte sequence for encoding "UTF8": 0xc3