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
I dug into this a little bit and came to the conclusion that adding PostgreSQL with the r2d2 library is tricky, because the base postgres crate wraps tokio_postgres, and therefore tries to spawn a nested runtime. I figure this mean that the database layer will need refactoring to be fully async so that tokio_postgres can be used directly.
I dug into this a little bit and came to the conclusion that adding PostgreSQL with the r2d2 library is tricky, because the base postgres crate wraps tokio_postgres, and therefore tries to spawn a nested runtime. I figure this mean that the database layer will need refactoring to be fully async so that tokio_postgres can be used directly.
Hi @gmemstr, thank you for the feedback. I have not done much at the database layer. I only know we were considering alternatives to r2d2:
Hi @the-rarbg@gmemstr, I'm working on #1525 and expect to add support for PostgreSQL in some days. It will be available in the "develop" branch. We are planning to release version 4.0.0 this year.
Hi @the-rarbg, @gmemstr, support for postgresql has been added in #1723. It's available in the "develop" branch and will be included in the next major release.
Activity
gmemstr commentedon Mar 31, 2025
I dug into this a little bit and came to the conclusion that adding PostgreSQL with the r2d2 library is tricky, because the base
postgrescrate wrapstokio_postgres, and therefore tries to spawn a nested runtime. I figure this mean that the database layer will need refactoring to be fully async so thattokio_postgrescan be used directly.josecelano commentedon Mar 31, 2025
Hi @gmemstr, thank you for the feedback. I have not done much at the database layer. I only know we were considering alternatives to r2d2:
#616
And other changes. So I guess we need to make changes anyway for other reasons.
Have you consider other alternatives? Do you think r2d2 is still a good choice for this project?
josecelano commentedon Apr 30, 2026
Hi @the-rarbg @gmemstr, I'm working on #1525 and expect to add support for PostgreSQL in some days. It will be available in the "develop" branch. We are planning to release version 4.0.0 this year.
josecelano commentedon May 1, 2026
Hi @the-rarbg, @gmemstr, support for postgresql has been added in #1723. It's available in the "develop" branch and will be included in the next major release.