Skip to content

Support checking Orioledb tables in pg_amcheck#66

Merged
pashkinelfe merged 1 commit into
patches16from
pg_amcheck_support-16
May 25, 2026
Merged

Support checking Orioledb tables in pg_amcheck#66
pashkinelfe merged 1 commit into
patches16from
pg_amcheck_support-16

Conversation

@pashkinelfe
Copy link
Copy Markdown
Contributor

  • Add support for extra access method and call verify_orioledb() sql function for them.
  • As verify_orioledb function resides in orioledb schema do necessary schema checks before the call.

No changes in amcheck utility that still supports only heap and btree access methods.

- Add support for extra access method and call verify_orioledb()
sql function for them.
- As verify_orioledb function resides in orioledb schema do necessary
schema checks before the call.

No changes in amcheck utility that still supports only heap and btree
access methods.
@pgnickb pgnickb requested a review from Copilot May 22, 2026 11:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +180 to +182
"SELECT n.nspname FROM pg_catalog.pg_extension x"
"\nJOIN pg_catalog.pg_namespace n ON x.extnamespace = n.oid"
"\nWHERE x.extname = 'orioledb'";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit:

Suggested change
"SELECT n.nspname FROM pg_catalog.pg_extension x"
"\nJOIN pg_catalog.pg_namespace n ON x.extnamespace = n.oid"
"\nWHERE x.extname = 'orioledb'";
"SELECT n.nspname FROM pg_catalog.pg_extension as x"
"\nJOIN pg_catalog.pg_namespace n ON x.extnamespace OPERATOR(pg_catalog.=) n.oid"
"\nWHERE x.extname OPERATOR(pg_catalog.=) 'orioledb'";

The rest of the code isn't paranoid about qualifying the operators, so it's ok if we aren't either. Just wanted to bring this to attention.

@pashkinelfe pashkinelfe merged commit e5ef9e6 into patches16 May 25, 2026
8 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.

4 participants