Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix operation for snapshots and replace use of information_schema #154

Merged
merged 1 commit into from
May 24, 2024

Conversation

lyuboxa
Copy link
Contributor

@lyuboxa lyuboxa commented May 24, 2024

Description

Snapshot records were being produced using the Create operation rather than 'Snapshot'. PostgreSQL information_schema can lack visibility to users with limited grants, switch to using pg_* tables where possible.

Use jackc pgerrcode instead of maintaining our own constants.

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

Snapshot records were being produced using the `Create` operation rather than 'Snapshot'.
PostgreSQL `information_schema` can lack visibility to users with limited grants, switch to using pg_* tables
where possible.

Use jackc pgerrcode instead of maintaining our own constants.
@lyuboxa lyuboxa requested a review from a team as a code owner May 24, 2024 00:49
Copy link
Member

@raulb raulb left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you @lyuboxa !

@raulb raulb merged commit c95c1cc into main May 24, 2024
3 checks passed
@raulb raulb deleted the lk/use-snapshot-op branch May 24, 2024 07:39
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.

4 participants