Skip to content

Postgres support should be awesome addition #462

Closed

Description

@the-rarbg

Postgres is also very popular anyway we could use postgres instead of mysql

Activity

  1. added
    - Admin -
    on Sep 21, 2023
  2. added
    Needs Feedback
    Needs Research
    and removed on Oct 10, 2023
  3. moved this to Feature request in Torrust Solutionon Jan 8, 2024
  4. moved this from Feature & Enhancement request to Help Wanted in Torrust Solutionon Jan 11, 2024
  5. added this to the milestone on Jan 16, 2024
  6. gmemstr commented on Mar 31, 2025

    @gmemstr

    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.

  7. josecelano commented on Mar 31, 2025

    @josecelano
    Member

    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:

    #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?

  8. self-assigned this
    on Apr 30, 2026
  9. josecelano commented on Apr 30, 2026

    @josecelano
    Member

    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.

  10. josecelano commented on May 1, 2026

    @josecelano
    Member

    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.

  11. moved this from Help Wanted to Done in Torrust Solutionon May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

- Admin -Enhancement / Feature RequestNeeds FeedbackNeeds Research

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions