Thread: pgsql-server: Support "OR condition ..." in plpgsql EXCEPTION clauses to

pgsql-server: Support "OR condition ..." in plpgsql EXCEPTION clauses to

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Support "OR condition ..." in plpgsql EXCEPTION clauses to make the syntax
more nearly Oracle-equivalent.  Allow matching by category as well as
specific error code.  Document the set of available condition names
(or more accurately, synchronize it with the existing documentation).  In
passing, update errcodes.sgml to include codes added during 7.5 development.

Modified Files:
--------------
    pgsql-server/doc/src/sgml:
        errcodes.sgml (r1.6 -> r1.7)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/doc/src/sgml/errcodes.sgml.diff?r1=1.6&r2=1.7)
        plpgsql.sgml (r1.42 -> r1.43)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/doc/src/sgml/plpgsql.sgml.diff?r1=1.42&r2=1.43)
    pgsql-server/src/include/utils:
        elog.h (r1.71 -> r1.72)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/utils/elog.h.diff?r1=1.71&r2=1.72)
    pgsql-server/src/pl/plpgsql/src:
        gram.y (r1.58 -> r1.59)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/pl/plpgsql/src/gram.y.diff?r1=1.58&r2=1.59)
        pl_exec.c (r1.110 -> r1.111)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/pl/plpgsql/src/pl_exec.c.diff?r1=1.110&r2=1.111)
        pl_funcs.c (r1.33 -> r1.34)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/pl/plpgsql/src/pl_funcs.c.diff?r1=1.33&r2=1.34)
        plerrcodes.h (r1.1 -> r1.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/pl/plpgsql/src/plerrcodes.h.diff?r1=1.1&r2=1.2)
        plpgsql.h (r1.48 -> r1.49)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/pl/plpgsql/src/plpgsql.h.diff?r1=1.48&r2=1.49)
        scan.l (r1.35 -> r1.36)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/pl/plpgsql/src/scan.l.diff?r1=1.35&r2=1.36)
    pgsql-server/src/test/regress/expected:
        plpgsql.out (r1.18 -> r1.19)

(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/test/regress/expected/plpgsql.out.diff?r1=1.18&r2=1.19)
    pgsql-server/src/test/regress/sql:
        plpgsql.sql (r1.13 -> r1.14)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/test/regress/sql/plpgsql.sql.diff?r1=1.13&r2=1.14)