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

TCE: triggers recreated twice per column #55

Open
michelp opened this issue Dec 14, 2022 · 1 comment
Open

TCE: triggers recreated twice per column #55

michelp opened this issue Dec 14, 2022 · 1 comment

Comments

@michelp
Copy link
Owner

michelp commented Dec 14, 2022

Triggers get recreated twice per column due to loose masking view query.

@ioguix
Copy link
Collaborator

ioguix commented Dec 15, 2022

Hi,

Speaking about tha,t I don't understand why create_mask_view() is called for each encrypted columns in a table considering that:

  • it drops the related decrypted_<relname> view
  • it creates the related decrypted_<relname> view with the code to decrypted all columns
  • it actually creates all trigger functions and triggers for all encrypted columns on a table.

This function obviously handle the full table and encryted fields, recreating the view and triggers, so why should it be called for each encrypted field?

@ioguix ioguix mentioned this issue Jan 5, 2023
3 tasks
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 a pull request may close this issue.

2 participants