Postgresql Declare Variable For Query Meaning