You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If not specified, the value parsed from the dsn argument is used, or the value of the PGDATABASE environment variable, or the operating system name of the user running the application.
But in fact if database username is provided but database is not, database user name is used instead of system username.
Also why not just use postgres as default value instead of username?
asyncpg version ==0.24.0 postgres: docker image postgres:13-alpine, at the moment it use version 13.4 python version ==3.8
The text was updated successfully, but these errors were encountered:
The docs incorrectly claim that the `database` argument defaults to
the OS username, whereas in fact, the computed value of the `user`
argument is used.
Fixes: #823.
The docs incorrectly claim that the `database` argument defaults to
the OS username, whereas in fact, the computed value of the `user`
argument is used.
Fixes: #823.
asyncpg/asyncpg/connect_utils.py
Line 390 in 36658fa
In documentation it is said:
But in fact if database username is provided but database is not, database user name is used instead of system username.
Also why not just use
postgres
as default value instead of username?asyncpg version ==0.24.0
postgres: docker image
postgres:13-alpine
, at the moment it use version 13.4python version ==3.8
The text was updated successfully, but these errors were encountered: