Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P pg_repo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • packagespackages
  • golanggolang
  • GraphQLGraphQL
  • Old
  • PostgreSQL
  • pg_repo
  • Merge requests
  • !6

[IN-784] Preserve typed PostgreSQL errors and separate library diagnostics

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged antonizsar13 requested to merge IN-784 into master Nov 02, 2026
  • Overview 0
  • Commits 2
  • Pipelines 2
  • Changes 30

pg_repo now preserves PostgreSQL constraint metadata and original error chains without assigning BusinessCode or HTTP statuses. Services own business classification and final logging of returned dependency errors; the library retains debug diagnostics for those errors and error-level logs for its own internal failures. Includes rollback error preservation, wrapping fixes, documentation of the logging migration contract, and regression tests for query, iteration and commit failures, transaction ownership and no write retries. Validation: go test -race ./... and go vet ./... passed. Live PostgreSQL was unavailable; regression tests use database/sql with a controlled driver. Service dependency updates and GraphQL response mapping remain separate work for IN-784.

Edited Nov 02, 2026 by antonizsar13
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: IN-784