Skip to content

Commit

Permalink
Avoid maintaining three separate copies of the error codes list.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
robertmhaas committed Feb 4, 2011
1 parent 7212c77 commit ddfe26f
Show file tree
Hide file tree
Showing 20 changed files with 646 additions and 2,848 deletions.
1 change: 1 addition & 0 deletions doc/src/sgml/.gitignore
Expand Up @@ -16,6 +16,7 @@
# GENERATED_SGML
/features-supported.sgml
/features-unsupported.sgml
/errcodes-table.sgml
/version.sgml
/bookindex.sgml
/HTML.index
Expand Down
4 changes: 3 additions & 1 deletion doc/src/sgml/Makefile
Expand Up @@ -52,7 +52,7 @@ override XSLTPROCFLAGS += --stringparam pg.version '$(VERSION)'


GENERATED_SGML = bookindex.sgml version.sgml \
features-supported.sgml features-unsupported.sgml
features-supported.sgml features-unsupported.sgml errcodes-table.sgml

ALLSGML := $(wildcard $(srcdir)/*.sgml $(srcdir)/ref/*.sgml) $(GENERATED_SGML)

Expand Down Expand Up @@ -136,6 +136,8 @@ features-supported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_packages.
features-unsupported.sgml: $(top_srcdir)/src/backend/catalog/sql_feature_packages.txt $(top_srcdir)/src/backend/catalog/sql_features.txt
$(PERL) $(srcdir)/mk_feature_tables.pl NO $^ > $@

errcodes-table.sgml: $(top_srcdir)/src/backend/utils/errcodes.txt generate-errcodes-table.pl
$(PERL) $(srcdir)/generate-errcodes-table.pl $< > $@

##
## Print
Expand Down

0 comments on commit ddfe26f

Please sign in to comment.