Closed dylanmcreynolds closed 2 years ago
Hi! It looks like your connection string is wrong. We do not support psycopg2
and instead use asyncpg
which requires postgresql+asyncpg://
as your connection URL prefix instead.
@tpdorsey we'll want to make sure to highlight this in a future tutorial on using postgres.
Note this is covered in the documentation for the connection setting at https://github.com/PrefectHQ/prefect/blob/main/src/prefect/settings.py#L413-L416 but it's missing from the website for some reason. Tracking issue to resolve that at https://github.com/PrefectHQ/prefect/issues/6549.
Yep, that solved it. May thanks!
First check
Bug summary
Using a 2.20 docker image, I am unable to startup using postgres instead of sqlite. The documentation implies that all I need to do is switch the environment variable for the connection url.
Perhaps this is just a documentation isssue, and I need to add the
Reproduction
Error
Versions
Additional context
I tried adding the EXTRA_PIP_PACKAGES=psycopg2` environment variable, but pip was unable to install psycopg2: