MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / get_server_pid

Method get_server_pid

asyncpg/connection.py:252–254  ·  view source on GitHub ↗

Return the PID of the Postgres server the connection is bound to.

(self)

Source from the content-addressed store, hash-verified

250 self._query_loggers.discard(_Callback.from_callable(callback))
251
252 def get_server_pid(self):
253 """Return the PID of the Postgres server the connection is bound to."""
254 return self._protocol.get_server_pid()
255
256 def get_server_version(self):
257 """Return the version of the connected PostgreSQL server.

Callers 3

test_listen_01Method · 0.80
test_listen_02Method · 0.80

Calls

no outgoing calls

Tested by 3

test_listen_01Method · 0.64
test_listen_02Method · 0.64