-
Notifications
You must be signed in to change notification settings - Fork 435
Closed
Description
- the following snippet:
import asyncpg
await asyncpg.connect(dsn=data_conn)
- works with
application_name:
data_conn="postgresql://postgres:postgres@data-serv-0:5432/postgres?application_name=simple"
- and fails with
connect_timeout:
data_conn="postgresql://postgres:postgres@data-serv-0:5432/postgres?application_name=simple&connect_timeout=3"
asyncpg.exceptions.UndefinedObjectError: unrecognized configuration parameter "connect_timeout"
despite both application_name and connect_timeout should be valid options:
https://www.postgresql.org/docs/12/libpq-connect.html#LIBPQ-CONNSTRING
sbdchd
Metadata
Metadata
Assignees
Labels
No labels