cyrilgdn / terraform-provider-postgresql

Terraform PostgreSQL provider
https://www.terraform.io/docs/providers/postgresql/
Mozilla Public License 2.0
356 stars 182 forks source link

Make function security, strictness, volatility, and parallel safety configurable #307

Closed tommyzli closed 11 months ago

tommyzli commented 1 year ago

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 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

tommyzli commented 1 year ago

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

cyrilgdn commented 10 months ago

Released in v1.21.0