Skip to content

Add postgres Store - #975

Open
ChrisSchinnerl wants to merge 1 commit into
masterfrom
chris/postgres-init
Open

Add postgres Store#975
ChrisSchinnerl wants to merge 1 commit into
masterfrom
chris/postgres-init

Add postgres Store

4705cfa
Select commit
Loading
Failed to load commit list.
Knope Bot / Require changes to be documented required action Jul 9, 2026

This pull request has not been documented yet

This project requires changes to be documented via either changesets or conventional commits. Depending on how this pull request is merged, it may not be fully documented:

  • ❌ Squash would use commit message, that message is not conventional
  • ❌ Merge would use commit messages, and no commits are conventional
  • ❌ Rebase is allowed, and no commits are conventional

To satisfy this check, you can:

  • Address the conventional commit issues above
  • Click one of the buttons on this screen to auto-generate a change file (may only be visible to maintainers)
  • Create a change file with the Knope CLI
  • Create a change file in GitHub's web editor or copy/paste the content below into .changeset/add_postgres_store.md
    • Replace "CHANGE_TYPE" with major, minor, or patch (see knope's docs), then edit as needed for your users.

Details

---
default: CHANGE_TYPE
---

# Add postgres Store

#975 by @ChrisSchinnerl

This PR is the first of probably quite a few to introduce a Postgres driver to hostd.
It starts by adding a `init.sql` which is similar to SQLite's but with Postgres types as well as similar boilerplate code we use in `indexd`. The only difference between `indexd` and `hostd` is that this PR uses an embedded Postgres db for testing which makes running tests more convenient. 

Since we have 100+ store interface methods the goal is to follow up with at least 1 PR per store interface in the host but considering some of those are quite large probably a lot more than that. 
I really want to avoid this being a dumb translation and instead make sure it's making good use of Postgres' capabilities.