This fixes a minor regression introduced in https://github.com/cyrilgdn/terraform-provider-postgresql/pull/275. In previous versions of the module, the body field allowed the flexibility to add additional function attributes like SECURITY DEFINER. Now that the body field is restricted to only the actual function definition, we have lost that ability. This PR adds it back by introducing new fields to the postgresql_function resource
hi @cyrilgdn, I'd appreciate a review on this 🙏
the acceptance tests pass on my machine, except for a few cases of permission denied for schema public errors because i'm testing on a postgres 15 image
Closes https://github.com/cyrilgdn/terraform-provider-postgresql/issues/302
This fixes a minor regression introduced in https://github.com/cyrilgdn/terraform-provider-postgresql/pull/275. In previous versions of the module, the
body
field allowed the flexibility to add additional function attributes likeSECURITY DEFINER
. Now that the body field is restricted to only the actual function definition, we have lost that ability. This PR adds it back by introducing new fields to thepostgresql_function
resource