Add GET DIAGNOSTICS ... PG_CONTEXT in PL/PgSQL

Stephen Frost <sfrost@snowman.net>

Commit: 831283256796d1c20858862b568d73e505eb4a84
Author: Stephen Frost <sfrost@snowman.net>
Date: 2013-07-24T22:53:27Z
Releases: 9.4.0
Add GET DIAGNOSTICS ... PG_CONTEXT in PL/PgSQL

This adds the ability to get the call stack as a string from within a
PL/PgSQL function, which can be handy for logging to a table, or to
include in a useful message to an end-user.

Pavel Stehule, reviewed by Rushabh Lathia and rather heavily whacked
around by Stephen Frost.

Files