aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2023-09-28 15:33:37 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2023-09-28 15:33:37 +0200
commit22ff5c9d78b9c23622de2cf0730cec85266a7596 (patch)
tree366e4936e5b5faebef66c98b9a3ed5c6e09a80fb
parentc4a1933b48472eed0326462098091b47ffd7a14e (diff)
downloadpostgresql-22ff5c9d78b9c23622de2cf0730cec85266a7596.tar.gz
postgresql-22ff5c9d78b9c23622de2cf0730cec85266a7596.zip
doc: Clarify where ereport severity levels are defined
For a reader unfamiliar with the postgres code it might take some grepping to find where elevels are defined. This adds a reference to elog.h in the text like how SQLSTATE errorcodes are referenced to errcodes.h on the same page. Author: Kuwamura Masaki <kuwamura@db.is.i.nagoya-u.ac.jp> Discussion: https://postgr.es/m/CAMyC8qqp1UDA9zothnJ9CbUYByytwpALS3LkdZ6bs1w5kZw5Xg@mail.gmail.com
-rw-r--r--doc/src/sgml/sources.sgml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/sources.sgml b/doc/src/sgml/sources.sgml
index 514090d5a64..06d995e4b76 100644
--- a/doc/src/sgml/sources.sgml
+++ b/doc/src/sgml/sources.sgml
@@ -105,7 +105,8 @@ less -x4
<para>
There are two required elements for every message: a severity level
- (ranging from <literal>DEBUG</literal> to <literal>PANIC</literal>) and a primary
+ (ranging from <literal>DEBUG</literal> to <literal>PANIC</literal>, defined
+ in <filename>src/include/utils/elog.h</filename>) and a primary
message text. In addition there are optional elements, the most
common of which is an error identifier code that follows the SQL spec's
SQLSTATE conventions.