From 420dcaaeb1a3be51b6417da59ce69d7954369211 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 28 May 2011 00:25:33 +0300 Subject: [PATCH] Drop "meaning" column from error code table This is currently the same as the condition name, so it doesn't add any value, only clutter. --- doc/src/sgml/errcodes.sgml | 15 ++++++--------- doc/src/sgml/generate-errcodes-table.pl | 11 ++--------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/doc/src/sgml/errcodes.sgml b/doc/src/sgml/errcodes.sgml index 0f3659fc87..16cb6c7fcd 100644 --- a/doc/src/sgml/errcodes.sgml +++ b/doc/src/sgml/errcodes.sgml @@ -42,11 +42,9 @@ - The PL/pgSQL condition name for each error code is the - same as the phrase shown in the table, with underscores substituted - for spaces. For example, code 22012, DIVISION BY ZERO, - has condition name DIVISION_BY_ZERO. Condition names can - be written in either upper or lower case. (Note that + The symbol shown in the column Condition Name is also + the condition name to use in PL/pgSQL. Condition + names can be written in either upper or lower case. (Note that PL/pgSQL does not recognize warning, as opposed to error, condition names; those are classes 00, 01, and 02.) @@ -55,15 +53,14 @@ <productname>PostgreSQL</productname> Error Codes - + - - + + Error Code - Meaning Condition Name diff --git a/doc/src/sgml/generate-errcodes-table.pl b/doc/src/sgml/generate-errcodes-table.pl index 5d0ccffadd..0ac020ee24 100644 --- a/doc/src/sgml/generate-errcodes-table.pl +++ b/doc/src/sgml/generate-errcodes-table.pl @@ -29,7 +29,7 @@ while (<$errcodes>) { print "\n\n"; print "\n"; - print ""; + print ""; print "$_\n"; print "\n"; @@ -46,17 +46,10 @@ while (<$errcodes>) { # Skip lines without PL/pgSQL condition names next unless defined($condition_name); - my $meaning = $condition_name; - # Remove underscores - $meaning =~ s/_/ /g; - # And capitalize - $meaning =~ tr/[a-z]/[A-Z]/; - print "\n"; print "\n"; print "$sqlstate\n"; - print "$meaning\n"; - print "$condition_name\n"; + print "$condition_name\n"; print "\n"; } -- 2.40.0