mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-01 19:00: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
|
with a `~connection.commit()`/`~connection.rollback()` before
|
||||||
closing.
|
closing.
|
||||||
|
|
||||||
.. _PgBouncer: http://pgbouncer.projects.postgresql.org/
|
|
||||||
|
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
single: Exceptions; In the connection class
|
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
|
Note that the PID belongs to a process executing on the database
|
||||||
server host, not the local host!
|
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.
|
.. seealso:: libpq docs for `PQbackendPID()`__ for details.
|
||||||
|
|
||||||
.. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQBACKENDPID
|
.. __: https://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQBACKENDPID
|
||||||
|
@ -889,3 +890,6 @@ The ``connection`` class
|
||||||
:hide:
|
:hide:
|
||||||
|
|
||||||
conn.rollback()
|
conn.rollback()
|
||||||
|
|
||||||
|
.. _PgBouncer: http://pgbouncer.projects.postgresql.org/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user