Postgresql Variable In Select Statement