Established coding standards for pl/pgsql code

Posted by jb01 on Programmers See other posts from Programmers or by jb01
Published on 2012-10-23T10:48:08Z Indexed on 2012/10/23 11:18 UTC
Read the original article Hit count: 277

I need to standardize coding practises for project that compromises, among others has pl/pgsql database, that has some amount of nontrivial code.

I look for:

  • Code formatting guidelines, especially inside procedures.
  • Guidelines on what constructs are consigered unsafe (if any)
  • Naming coventions.
  • Code documentation conventions (if this is pracicised)

Any hints to documets that define good practises in pl/pgsql code? If not i'm looking for hints to practices that you consider good.

There is related question regarding TSQL: Can anyone recommend coding standards for TSQL?, which is relevant to psql as well, but I need more information on stored procedures.

Other related questions:

© Programmers or respective owner

Related posts about sql

Related posts about coding-standards