You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue where I could register multiple times the same function for password_check hook and then pulling my hair on why inserts are happening multiple time. The right solution from a developer way is to make it a UNIQUE constraint so a function f for a feature can be only registered once and keep the usage simple to use and understand.
Also a cleaner way to drop hooks for specific function is preferable (this is referenced in #58)
The text was updated successfully, but these errors were encountered:
This adds a PRIMARY KEY constraint on pgtle.feature_info to
prevent duplicate hook registrations. Specifically, a hook of
(hook,schema,funcname) combo can only be registered once.
fixes#23
I ran into an issue where I could register multiple times the same function for password_check hook and then pulling my hair on why inserts are happening multiple time. The right solution from a developer way is to make it a UNIQUE constraint so a function f for a feature can be only registered once and keep the usage simple to use and understand.
Also a cleaner way to drop hooks for specific function is preferable (this is referenced in #58)
The text was updated successfully, but these errors were encountered: