title: Better way to write PL/pgSQL?
body: <p>Is there a decent IDE-like tool for writing and debugging PL/pgSQL functions, e.g. for writing stored procedures?</p>
  
  <p>I find it an exercise in frustration using pgAdmin III, because the error messages are often deeply cryptic and things have a habit of failing in mysterious ways.</p>