Postgres Set Variable To Result In The Opposite