Assertions in PL/PgSQL

https://commitfest.postgresql.org/action/patch_view?id=1228
http://archives.postgresql.org/message-id/5235C8EB.6010207@joh.to