Skip to content

chore(dbtest): Update boundary default test postgres image#6558

Draft
RyanDerr wants to merge 2 commits into
mainfrom
rderr-boundary-docker-db-update
Draft

chore(dbtest): Update boundary default test postgres image#6558
RyanDerr wants to merge 2 commits into
mainfrom
rderr-boundary-docker-db-update

Conversation

@RyanDerr
Copy link
Copy Markdown
Member

@RyanDerr RyanDerr commented Apr 2, 2026

Overview

Boundary currently only supports version 15+ of postgres, this PR updates the default postgres testing image version to the most updated postgres image tag.

Changes To Test & Queries To Support PG V17

  • Updates to count queries to clamp negative values to zero since PostgreSQL documents that reltuples can be -1 when stats are unknown from the planner.
  • Updated some of the migration tests that were relying on implicit row ordering from postgres, to be deterministic since PSQL does not guarantee row order without an ORDER BY
    • Note that UNIONS also do not guarantee any order.
  • Updates to the grant comparison helper was also made to be order insensitive so it validates the actual grant content rather than comparing both order and content of what's returned.

Notes

  • A future PR likely should publish a new image to hashicorpboundary/postgres for 18-alpine and update the default image tag to 18-alpine in the testing/dbtest/docker/Makefile to boundary is tested locally against the latest supported version of pg.

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've documented the impact of any changes to security controls.
    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

…orted by Boundary, and update the default local test database to the latest supported version
@RyanDerr RyanDerr self-assigned this Apr 2, 2026
@RyanDerr RyanDerr changed the title chore(dbtest): Create Docker configs for newer Postgres versions supp… chore(dbtest): Update boundary default test postgres image Apr 2, 2026
@RyanDerr RyanDerr added this to the deferred milestone Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants