Postgresql Define Date Variable Sql