Thread: Coding style guide

Coding style guide

From
Daniel Loureiro
Date:
Is there any official style guide of PostgreSQL code ? Like the
"google-styleguide"
(http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml) ?

Regards,
--
Daniel Loureiro


Re: Coding style guide

From
Bruce Momjian
Date:
Daniel Loureiro wrote:
> Is there any official style guide of PostgreSQL code ? Like the
> "google-styleguide"
> (http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml) ?

There is the developers FAQ.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


Re: Coding style guide

From
Robert Haas
Date:
On Thu, Feb 17, 2011 at 3:55 PM, Bruce Momjian <bruce@momjian.us> wrote:
> Daniel Loureiro wrote:
>> Is there any official style guide of PostgreSQL code ? Like the
>> "google-styleguide"
>> (http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml) ?
>
> There is the developers FAQ.

There's also http://www.postgresql.org/docs/current/static/source.html

That section could probably use some expansion though.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company