Skip to content

Commit 16db0b4

Browse files
author
James William Pye
committed
Note thread safety as a gotchas.
1 parent b6cba32 commit 16db0b4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

postgresql/documentation/gotchas.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ 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+
Thread Safety
9+
-------------
10+
11+
py-postgresql connection operations are not thread safe.
812

913
`client_encoding` setting should be altered carefully
1014
-----------------------------------------------------

postgresql/documentation/index.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
py-postgresql
22
=============
33

4-
py-postgresql is a project dedicated to improving the Python interfaces to
5-
PostgreSQL. It strives to provide substantial convenience to Python programmers
6-
using PostgreSQL.
4+
py-postgresql is a project dedicated to improving the Python client interfaces to PostgreSQL.
75

86
At its core, py-postgresql provides a PG-API, `postgresql.api`, and
97
DB-API 2.0 interface for using a PostgreSQL database.
@@ -69,7 +67,6 @@ Using `postgresql.driver`::
6967
... print(row["emp_name"])
7068
... raise_emp(row["emp_name"], "10,000")
7169

72-
7370
Of course, if DB-API 2.0 is desired, the module is located at
7471
`postgresql.driver.dbapi20`. DB-API extends PG-API, so the features
7572
illustrated above are available on DB-API connections.

0 commit comments

Comments
 (0)