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

Add support for postgres stored procedures #440

Open AndrewJackson2020 opened 1 month ago

AndrewJackson2020 commented 1 month ago

This PR adds support for stored procedures in the provider. Since stored procedures are very similar to functions i based much of this implementation off of the preexisting code for functions.

Also I changed the shebang in some of the bash files so that it works on operating systems where bash is not located at /bin/bash (NixOS for example). I think this should not cause issues on operating systems where bash is located there but if it does cause any issues I am happy to revert that.

Please let me know if you see any issues and I will be happy to fix.