postgresql/contrib/sepgsql
Peter Eisentraut 604bd36711 PG_FINALLY
This gives an alternative way of catching exceptions, for the common
case where the cleanup code is the same in the error and non-error
cases.  So instead of

    PG_TRY();
    {
        ... code that might throw ereport(ERROR) ...
    }
    PG_CATCH();
    {
        cleanup();
	PG_RE_THROW();
    }
    PG_END_TRY();
    cleanup();

one can write

    PG_TRY();
    {
        ... code that might throw ereport(ERROR) ...
    }
    PG_FINALLY();
    {
        cleanup();
    }
    PG_END_TRY();

Discussion: https://www.postgresql.org/message-id/flat/95a822c3-728b-af0e-d7e5-71890507ae0c%402ndquadrant.com
2019-11-01 11:18:03 +01:00
..
expected Update test output of sepgsql for ALTER TABLE COLUMN DROP 2019-10-14 08:58:38 +09:00
sql Remove WITH OIDS support, change oid catalog column visibility. 2018-11-20 16:00:17 -08:00
.gitignore Minor sepgsql regression test fixes. 2011-02-02 23:46:51 -05:00
Makefile Add file version information to most installed Windows binaries. 2014-07-14 14:07:52 -04:00
database.c Fix typos in the code 2019-10-30 10:03:00 +09:00
dml.c Fix typos in the code 2019-10-30 10:03:00 +09:00
hooks.c PG_FINALLY 2019-11-01 11:18:03 +01:00
label.c PG_FINALLY 2019-11-01 11:18:03 +01:00
launcher Update copyright for 2019 2019-01-02 12:44:25 -05:00
proc.c Make the order of the header file includes consistent in contrib modules. 2019-10-24 08:05:34 +05:30
relation.c Make the order of the header file includes consistent in contrib modules. 2019-10-24 08:05:34 +05:30
schema.c Fix typos in the code 2019-10-30 10:03:00 +09:00
selinux.c PG_FINALLY 2019-11-01 11:18:03 +01:00
sepgsql-regtest.te Fix contrib/sepgsql test policy to work with latest SELinux releases. 2019-07-25 11:02:43 -04:00
sepgsql.h Fix inconsistencies and typos in the tree, take 9 2019-08-05 12:14:58 +09:00
sepgsql.sql.in sepgsql_setcon(). 2012-03-15 16:08:40 -04:00
test_sepgsql Fix omission of -X (--no-psqlrc) in some psql invocations. 2015-12-28 11:46:43 -05:00
uavc.c PG_FINALLY 2019-11-01 11:18:03 +01:00