PL/Python errcontext support

Lists: pgsql-hackers
From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PL/Python errcontext support
Date: 2009-07-17 20:15:26
Message-ID: 200907172315.26929.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

During the review of the patch about improved PL/Python data type support, I
figured this could be somewhat simplified if PL/Python used the errcontext()
mechanisms instead of passing the function name around everywhere in order to
use it in error messages.

I have produced the attached patch. The errcontext stuff is a bit obscure to
me though, so perhaps someone could look it over.

Attachment Content-Type Size
plpython-errcontext.patch text/x-patch 3.8 KB