I have an SQL function which has a parameter name as id. However, I have a column name which has the same name, id. How do I tell the function how to distinguish between the parameter and the column. My function works perfectly if I change the paramter name from id to num, but that is not an option here and I cannot change the column name too.
create or replace function
test(id integer) return text
as $$
select address
from customers c
where c.id = id
$$ language sql;