Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Coding standards? Recommendations?


  • From: korry <korry(at)appx(dot)com>
  • To: pgsql-hackers(at)postgresql(dot)org
  • Subject: Coding standards? Recommendations?
  • Date: Sun, 15 Jan 2006 11:14:05 -0500
  • Message-id: <200601151114.06337.korry@appx.com> <text/plain>

I've noticed a variety of coding styles in the PostgreSQL source code.  In 
particular, I see a mix of naming conventions.  Some variables use camelCase 
(or CamelCase), others use under_score_style.

I'm just wondering if there's a preferred naming convention.  Is there an 
official convention?  An unofficial recommendation?  Or even a majority 
preference?

I'm not necessarily arguing for an official standard, but I'd be happy to 
follow a standard/recommendation if there is one.  I find it just as easy to 
write conforming code as non-conforming code.

(sorry if this has been covered before - if you can point me to a document 
that covers the information I'm looking for, that would be very helpful).

			-- Korry




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group