cyrilgdn / terraform-provider-postgresql

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

Allow define a search_path on the database #401

Open NitriKx opened 5 months ago

NitriKx commented 5 months ago

In this PR I've added a search_path parameter on the postgresql_database resource, which allows to alter the database to set a value for its search path.

It's inspired from what has been done by on the role (the readSearchPath function has been moved in helpers.go as I've re-used it.

Web documentation has been updated as well 🙂

cyrilgdn commented 4 months ago

@NitriKx Thanks for your work on that :pray:

NitriKx commented 3 months ago

Thanks for your feedback @cyrilgdn, will try to do the changes (and rebase) next week 🙂