set role before creating c pg functions