I would like to create a function that has the Schema hard coded like declare V_SCHEMA_NAME text := :SCHEMA_NAME; begin but as the plpgsql code is within quotes, it Fails.
No, there is not possible to read/write client side variables from server side.