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

From Tom Lane
Subject Re: Text <-> C string
Date
Msg-id 6194.1190504724@sss.pgh.pa.us
Whole thread Raw
In response to Re: Text <-> C string  ("Brendan Jurd" <direvus@gmail.com>)
List pgsql-hackers
"Brendan Jurd" <direvus@gmail.com> writes:
> The thing that's got me confused at the moment is what naming
> convention to use for the functions.

Well, almost any convention you like has some precedent somewhere in
the PG code, given all the contributors over the years.  Almost the
only thing we actively discourage is Hungarian notation, and I think
there's even some of that in some corners.

Personally I would vote against something like TextPGetCString because
it would look like one of the family of macros that are named FooGetBar.
Maybe use text_to_cstring and cstring_to_text?  It's not real important
though.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Brendan Jurd"
Date:
Subject: Re: [PATCHES] Add function for quote_qualified_identifier?
Next
From: Gregory Stark
Date:
Subject: Re: [PATCHES] Eliminate more detoast copies for packed varlenas