Postgres Use Variable In Soql For Custom