mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-31 18:40:09 +03:00
Added a note about undefined behavior of get_backend_pid when connecting to PgBouncer.
This commit is contained in:
parent
4d10f1235f
commit
8b4d3ac965
|
@ -117,8 +117,6 @@ The ``connection`` class
|
|||
with a `~connection.commit()`/`~connection.rollback()` before
|
||||
closing.
|
||||
|
||||
.. _PgBouncer: http://pgbouncer.projects.postgresql.org/
|
||||
|
||||
|
||||
.. index::
|
||||
single: Exceptions; In the connection class
|
||||
|
@ -828,6 +826,9 @@ The ``connection`` class
|
|||
Note that the PID belongs to a process executing on the database
|
||||
server host, not the local host!
|
||||
|
||||
.. warning:: Behaviour of the ``get_backend_pid`` is undefined when
|
||||
connecting to some sort of proxy, like PgBouncer_.
|
||||
|
||||
.. seealso:: libpq docs for `PQbackendPID()`__ for details.
|
||||
|
||||
.. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQBACKENDPID
|
||||
|
@ -889,3 +890,6 @@ The ``connection`` class
|
|||
:hide:
|
||||
|
||||
conn.rollback()
|
||||
|
||||
.. _PgBouncer: http://pgbouncer.projects.postgresql.org/
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user