I'm new to triggers.
I have a function that I use to check if a password is valid that returns a boolean value. Is it possible to trigger a trigger only if the value is true? (This would update the last_login_time based on successful password checking).
PS I'm using PostgreSQL 9.0.4
Is it possible to write such trigger?