Skip to content

Introduce a PostgreSQL based backend #731

Closed

Description

There have been multiple discussions around ValKey's durability guarantees and whether it's the right fit for Substrate. In #640 , Jet Chiang (@supreme-gg-gg) proposed a PostgreSQL alternative backend (see https://docs.google.com/document/d/12-ko_BFHcBo_nJkx9f4B7zMbiiWKC2saGhMhZG3aQ-s/edit?pli=1&tab=t.0 for a detailed benchmark).

This task is to introduce an alternative store PostgreSQL implementation, controlled by a binary flag.

Activity

  1. mtaufen commented on Aug 6, 2026

    @mtaufen
    Collaborator

    Why an "alternative" solution, if ValKey isn't the right fit to begin with? Seems like we should just switch to PostgreSQL.

    Have we considered what to do for scale-out, after? What solutions are available for sharding PostgreSQL (anything like Vitess?)?

  2. BenTheElder commented on Aug 26, 2026

    @BenTheElder
    Collaborator

    This is done. And it is now the default / only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions