On 26/12/10 05:55, Robert Haas wrote: > On Sat, Dec 25, 2010 at 3:39 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: >> Robert Haas <rh...@postgresql.org> writes: >>> Add foreign data wrapper error code values for SQL/MED. >>> Extracted from a much larger patch by Shigeru Hanada. >> >> This patch is quite incomplete. Any patch that adds to errcodes.h >> *must* also touch >> doc/src/sgml/errcodes.sgml >> src/pl/plpgsql/src/plerrcodes.h > > Drat. OK, will work on it tomorrow. I didn't realize those places > needed to be updated.
I noticed the other day that plerrcodes.h has a comment saying is should be generated with some sed hackery, and as I needed to generate a Python exception class for each error in errcodes.h I did the hackery. See https://github.com/wulczer/postgres/commit/44fc42b7708f23483156e4e0e1e321e68b2a7e2d#diff-0 for something that maybe could be used as a basis to autogenerate errcodes.sgml and plerrcodes.h. Cheers, Jan -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers