When I execute these script, it works in postgresql;
select '2021-09-01'::Date - 1
select current_date -1
But when I use this type of subtracting in function, postgresql gives me error like this;
Function usage in declare part :
v_date date := p_date - p_number;
ERROR: operator does not exist: date - numeric
p_number?int