Avoid maintaining three separate copies of the error codes list.
Robert Haas <rhaas@postgresql.org>
Avoid maintaining three separate copies of the error codes list. src/pl/plpgsql/src/plerrcodes.h, src/include/utils/errcodes.h, and a big chunk of errcodes.sgml are now automatically generated from a single file, src/backend/utils/errcodes.txt. Jan Urbański, reviewed by Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/errcodes.sgml | modified | +1 −1558 |
| doc/src/sgml/filelist.sgml | modified | +2 −0 |
| doc/src/sgml/generate-errcodes-table.pl | added | +63 −0 |
| doc/src/sgml/.gitignore | modified | +1 −0 |
| doc/src/sgml/Makefile | modified | +3 −1 |
| src/backend/Makefile | modified | +1 −0 |
| src/backend/utils/errcodes.txt | added | +452 −0 |
| src/backend/utils/generate-errcodes.pl | added | +41 −0 |
| src/backend/utils/.gitignore | modified | +1 −0 |
| src/backend/utils/Makefile | modified | +5 −2 |
| src/include/Makefile | modified | +1 −1 |
| src/include/utils/errcodes.h | deleted | +0 −386 |
| src/include/utils/.gitignore | modified | +1 −0 |
| src/Makefile | modified | +11 −0 |
| src/pl/plpgsql/src/generate-plerrcodes.pl | added | +40 −0 |
| src/pl/plpgsql/src/.gitignore | modified | +1 −0 |
| src/pl/plpgsql/src/Makefile | modified | +8 −4 |
| src/pl/plpgsql/src/plerrcodes.h | deleted | +0 −896 |
| src/tools/msvc/builddoc.bat | modified | +1 −0 |
| src/tools/msvc/Solution.pm | modified | +13 −0 |