Skip to content

Commit 05ee2b0

Browse files
committed
Document the issue with host/port defaults and endpoints.
1 parent 25e21b2 commit 05ee2b0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

postgresql/driver/dbapi20.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ def rollback(self):
401401
def connect(**kw):
402402
"""
403403
Create a DB-API connection using the given parameters.
404+
405+
Due to the way defaults are populated, when connecting to a local filesystem socket
406+
using the `unix` keyword parameter, `host` and `port` must also be set to ``None``.
404407
"""
405408
std_params = pg_param.collect(prompt_title = None)
406409
params = pg_param.normalize(

0 commit comments

Comments
 (0)