postgresql/contrib/postgres_fdw
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 Fix many typos and inconsistencies 2019-07-01 10:00:23 +09:00
sql Fix many typos and inconsistencies 2019-07-01 10:00:23 +09:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
connection.c PG_FINALLY 2019-11-01 11:18:03 +01:00
deparse.c Make the order of the header file includes consistent in contrib modules. 2019-10-24 08:05:34 +05:30
option.c Make the order of the header file includes consistent in contrib modules. 2019-10-24 08:05:34 +05:30
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c PG_FINALLY 2019-11-01 11:18:03 +01:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h pgindent run prior to branching v12. 2019-07-01 12:37:52 -04:00
shippable.c Make the order of the header file includes consistent in contrib modules. 2019-10-24 08:05:34 +05:30