Skip to content

Improve error reporting#84

Merged
dverite merged 4 commits intomainfrom
error-checking
Feb 26, 2026
Merged

Improve error reporting#84
dverite merged 4 commits intomainfrom
error-checking

Conversation

@dverite
Copy link
Collaborator

@dverite dverite commented Feb 26, 2026

No description provided.

Signed-off-by: Daniel Vérité <dverite@gmail.com>
Get first the partition settings and key column type
before creating the new partition.
If these operations fail, do not create the partition,
which avoids leaving the attachment in an unfinished state.

Signed-off-by: Daniel Vérité <dverite@gmail.com>
When the query in ListPartitions() failed (for instance
because of a timeout), the partition manager exited
with an error code, but no relevant trace was emitted.
This fix adds the logging of the SQL error.

Signed-off-by: Daniel Vérité <dverite@gmail.com>
Signed-off-by: Daniel Vérité <dverite@gmail.com>
@github-actions
Copy link

Code Coverage

Package Line Rate Health
github.com/qonto/postgresql-partition-manager/cmd 50%
github.com/qonto/postgresql-partition-manager/cmd/run 70%
github.com/qonto/postgresql-partition-manager/cmd/validate 65%
github.com/qonto/postgresql-partition-manager/internal/infra/config 71%
github.com/qonto/postgresql-partition-manager/internal/infra/logger 100%
github.com/qonto/postgresql-partition-manager/internal/infra/partition 78%
github.com/qonto/postgresql-partition-manager/internal/infra/postgresql 91%
github.com/qonto/postgresql-partition-manager/internal/infra/retry 100%
github.com/qonto/postgresql-partition-manager/internal/infra/uuid7 91%
github.com/qonto/postgresql-partition-manager 100%
github.com/qonto/postgresql-partition-manager/pkg/ppm 71%
github.com/qonto/postgresql-partition-manager/pkg/ppm/mocks 36%
Summary 70% (1056 / 1507)

@dverite
Copy link
Collaborator Author

dverite commented Feb 26, 2026

#storage

Copy link
Contributor

@dcupif dcupif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thought on the side, it seems that we only have an auto-generated CHANGELOG for this project, but nothing tailored for humans. We may want to change that at some point 🤔

@dverite dverite merged commit 7c0a338 into main Feb 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants