Re: A small rant about coding style for backend functions

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: A small rant about coding style for backend functions
Дата
Msg-id 87lk9892lp.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: A small rant about coding style for backend functions  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
"Bruce Momjian" <bruce@momjian.us> writes:

> Tom Lane wrote:
>
>> Having said that, there are two or three tips worth knowing about
>> pg_indent's behavior, like when and how to use dashes to prevent
>> comment blocks from being re-flowed.  But it's a short list.
>
> Agreed, and the developer's FAQ already has this:
>
>     <P><I>pgindent</I> will the format code by specifying flags to your

What I would like to see are guidelines on the more important issues. Things
like always using PG_GETARG_* and DatumGet* rather than explicitly calling
pg_detoast_datum() and so on.

Actually I'm not sure what else would fall under "and so on".

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's 24x7 Postgres support!


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Free Space Map thoughts
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Postgresql 8.3 beta crash