Skip to content

Commit e103bb8

Browse files
committed
Relocate the non-english locale section to the bottom as it appears to no longer be relevant.
1 parent b6db7b6 commit e103bb8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

postgresql/documentation/gotchas.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ It is recognized that decisions were made that may not always be ideal for a
55
given user. In order to highlight those potential issues and hopefully bring
66
some sense into a confusing situation, this document was drawn.
77

8-
Non-English Locales
9-
-------------------
10-
11-
Many non-english locales are not supported due to the localization of the severity field
12-
in messages and errors sent to the client. Internally, py-postgresql uses this to allow
13-
client side filtering of messages and to identify FATAL connection errors that allow the
14-
client to recognize that it should be expecting the connection to terminate.
15-
168
Thread Safety
179
-------------
1810

@@ -112,3 +104,11 @@ This exception is raised by a generic processing routine whose functionality
112104
is abstract in nature, so the message is abstract as well. It essentially means
113105
that a tuple in the sequence given to the loading method had too many or too few
114106
items.
107+
108+
Non-English Locales
109+
-------------------
110+
111+
In the past, some builds of PostgreSQL localized the severity field of some protocol messages.
112+
`py-postgresql` expects these fields to be consistent with their english terms. If the driver
113+
raises strange exceptions during the use of non-english locales, it may be necessary to use an
114+
english setting in order to coax the server into issueing familiar terms.

0 commit comments

Comments
 (0)