Skip to content

Commit ee37fb5

Browse files
committed
Add guidelines for formatting errcontext strings
1 parent 7bfc0e5 commit ee37fb5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/src/sgml/sources.sgml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/sources.sgml,v 2.35 2009/10/08 02:39:16 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/sources.sgml,v 2.36 2010/06/28 17:48:26 petere Exp $ -->
22

33
<chapter id="source">
44
<title>PostgreSQL Coding Conventions</title>
@@ -444,6 +444,12 @@ Hint: the addendum
444444
inappropriate in other languages).
445445
</para>
446446

447+
<para>
448+
Error context strings: Do not capitalize the first letter and do
449+
not end the string with a period. Context strings should normally
450+
not be complete sentences.
451+
</para>
452+
447453
<para>
448454
Rationale: Avoiding punctuation makes it easier for client applications to
449455
embed the message into a variety of grammatical contexts. Often, primary

0 commit comments

Comments
 (0)