postgres interval dynamic value