title: PL/pgSQL styleguide
body: <p>There are a lot of styleguides on the Internet for different languages such as <a href="https://github.com/styleguide/css" rel="noreferrer">CSS</a>, <a href="https://github.com/styleguide/javascript" rel="noreferrer">Javascript</a>, <a href="https://github.com/bbatsov/ruby-style-guide" rel="noreferrer">Ruby</a>, <a href="https://github.com/bbatsov/rails-style-guide" rel="noreferrer">Rails</a> etc.</p>
  
  <p>But where can I find find good modern styleguide for procedural language of the PostgreSQL database system - <a href="http://www.postgresql.org/docs/9.4/static/plpgsql-overview.html" rel="noreferrer">PL/pgSQL</a>? </p>
  
  <p>I would also appreciate automatic code analyzer like a <a href="https://github.com/bbatsov/rubocop" rel="noreferrer">rubocop</a> for ruby.</p>