michelp / pgsodium

Modern cryptography for PostgreSQL using libsodium.
Other
555 stars 32 forks source link

TCE: triggers recreated twice per column #55

Open michelp opened 1 year ago

michelp commented 1 year ago

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

ioguix commented 1 year ago

Hi,

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

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?