pgsql: Add an ASSERT statement in plpgsql.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add an ASSERT statement in plpgsql.
Date: 2015-03-25 23:05:45
Message-ID: E1YauMr-0000PP-PD@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add an ASSERT statement in plpgsql.

This is meant to make it easier to insert simple debugging cross-checks
in plpgsql functions.

Pavel Stehule, reviewed by Jim Nasby

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a4847fc3ef139ba9a8ffebb6ffa06ee72078ffa2

Modified Files
--------------
doc/src/sgml/plpgsql.sgml | 77 +++++++++++++++++++++++++++++++--
src/backend/utils/errcodes.txt | 1 +
src/pl/plpgsql/src/pl_exec.c | 68 +++++++++++++++++++++++++----
src/pl/plpgsql/src/pl_funcs.c | 36 +++++++++++++++
src/pl/plpgsql/src/pl_gram.y | 29 ++++++++++++-
src/pl/plpgsql/src/pl_handler.c | 10 +++++
src/pl/plpgsql/src/pl_scanner.c | 4 +-
src/pl/plpgsql/src/plpgsql.h | 10 +++++
src/test/regress/expected/plpgsql.out | 49 +++++++++++++++++++++
src/test/regress/sql/plpgsql.sql | 48 ++++++++++++++++++++
10 files changed, 316 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-03-25 23:11:06 Re: [COMMITTERS] pgsql: Add macros wrapping all usage of gcc's __attribute__.
Previous Message Andres Freund 2015-03-25 21:49:21 pgsql: Centralize definition of integer limits.