Re: Re: [COMMITTERS] pgsql: Add foreign data wrapper error code values for SQL/MED. - Mailing list pgsql-hackers

From Jan Urbański
Subject Re: Re: [COMMITTERS] pgsql: Add foreign data wrapper error code values for SQL/MED.
Date
Msg-id 4D173D1F.2060408@wulczer.org
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Add foreign data wrapper error code values for SQL/MED.  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Re: [COMMITTERS] pgsql: Add foreign data wrapper error code values for SQL/MED.
List pgsql-hackers
On 26/12/10 05:55, Robert Haas wrote:
> On Sat, Dec 25, 2010 at 3:39 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Robert Haas <rhaas@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


pgsql-hackers by date:

Previous
From: Jie Li
Date:
Subject: Re: Why is sorting on two columns so slower thansortingon one column?
Next
From: Robert Haas
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Add foreign data wrapper error code values for SQL/MED.