Postgresql Define Variable Expression In Math