Re: Text <-> C string

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Text <-> C string
Дата
Msg-id 6194.1190504724@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Text <-> C string  ("Brendan Jurd" <direvus@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Brendan Jurd"
Дата:
Сообщение: Re: [PATCHES] Add function for quote_qualified_identifier?
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: [PATCHES] Eliminate more detoast copies for packed varlenas