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

PG-1072: Fix major event trigger issues #307

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

dutow
Copy link
Collaborator

@dutow dutow commented Oct 9, 2024

  • Create table always checked the principal key and tried to create it, event when we didn't try to create a tde_heap table
  • Alter table wasn't handled, and because of this changing a table to tde_heap access method didn't result in an encrypted table.
  • defaut_table_access_method wasn't handled, and because of this, creating a table using that also resulted in a non encrypted table.

Copy link
Member

@dAdAbird dAdAbird left a comment

Choose a reason for hiding this comment

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

LGTM overall just a couple of printf leftovers

Comment on lines 136 to 137
fprintf(stderr, "ALTEEEER\n");
fprintf(stderr, "ALTEEEER\n");
Copy link
Member

Choose a reason for hiding this comment

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

debug leftovers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, fixed.

{
AlterTableCmd *cmd = (AlterTableCmd *) lfirst(lcmd);
if(cmd->subtype == AT_SetAccessMethod && strcmp(cmd->name, "tde_heap")==0) {
fprintf(stderr, "TO ENCRYPTED\n");
Copy link
Member

Choose a reason for hiding this comment

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

debug leftovers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, fixed.

* Create table always checked the principal key and tried to create
  it, event when we didn't try to create a tde_heap table
* Alter table wasn't handled, and because of this changing a table
  to tde_heap access method didn't result in an encrypted table.
* defaut_table_access_method wasn't handled, and because of this,
  creating a table using that also resulted in a non encrypted
  table.
@dutow dutow merged commit 8313971 into percona:main Oct 9, 2024
13 of 14 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.

2 participants