diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-10-10 22:03:36 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-10-10 22:03:36 +0100 |
| commit | cd9d74c4628f790f00b29818e5d514f8789f0528 (patch) | |
| tree | c9c4aa52439d5dbbc697795f94289fb917814dc5 /doc/src | |
| parent | f5f6b420b292dd8c6b72d42d52f201ad02508646 (diff) | |
| parent | 382eeccab8cd7a13abd71f6ee5dcc3583af2d8ca (diff) | |
| download | psycopg2-cd9d74c4628f790f00b29818e5d514f8789f0528.tar.gz | |
Merge branch 'conn-get-host'
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/connection.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/src/connection.rst b/doc/src/connection.rst index 2910f30..f6e3f4a 100644 --- a/doc/src/connection.rst +++ b/doc/src/connection.rst @@ -600,6 +600,24 @@ The ``connection`` class .. index:: + pair: Backend; Host + + .. attribute:: host + + The server host name of the active connection. + + This can be a host name, an IP address, or a directory path if the + connection is via Unix socket. (The path case can be distinguished + because it will always be an absolute path, beginning with ``/``.) + + .. seealso:: libpq docs for `PQhost()`__ for details. + + .. __: http://www.postgresql.org/docs/current/static/libpq-status.html#LIBPQ-PQHOST + + .. versionadded:: 2.8.0 + + + .. index:: pair: Backend; PID .. method:: get_backend_pid() |
