<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/pltcl.sgml,v 2.23 2003/04/07 01:29:25 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/pltcl.sgml,v 2.24 2003/06/22 16:17:00 tgl Exp $
-->
<chapter id="pltcl">
<varlistentry>
<indexterm>
<primary>elog</primary>
+ <secondary>PL/Tcl</secondary>
</indexterm>
<term><function>elog</> <replaceable>level</replaceable> <replaceable>msg</replaceable></term>
<listitem>
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/sources.sgml,v 2.7 2003/05/19 21:38:24 tgl Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/sources.sgml,v 2.8 2003/06/22 16:17:01 tgl Exp $
-->
<chapter id="source">
- <title>PostgreSQL Source Code</title>
+ <title>PostgreSQL Coding Conventions</title>
<sect1 id="source-format">
<title>Formatting</title>
<sect1 id="error-message-reporting">
<title>Reporting Errors Within the Server</title>
+ <indexterm>
+ <primary>ereport</primary>
+ </indexterm>
+ <indexterm>
+ <primary>elog</primary>
+ </indexterm>
+
<para>
Error, warning, and log messages generated within the server code
should be created using <function>ereport</>, or its older cousin