-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible regression on resource postgresql_function, suddenly causing errors related to database not found. #291
Comments
The issue seems to come from the fact that in 1.18, you could create Postgres function with a
Version 1.19 introduced a new parsing function to enable resource importing, under the form:
However, if one of your function contained a In my case, to refresh its state, it tries to get : function For the sake of argument, note that the function should have been created as |
I had to remove the offending |
Not clear to me - |
I just noticed that datadog has a way to override the function name: explain_function. For now I think I'll leave the function name as |
This was helpful. We were running into an issue where Terraform was trying to create new function resources even though they already existed causing it to fail out. |
Hi there,
Thank you for opening an issue. Please provide the following information:
Terraform Version
Terraform v1.4.2
on darwin_amd64
Affected Resource(s)
postgresql_function as far as I can tell.
Terraform Configuration Files
Abridged version of our terraform files containing only the impacted resource (function).
function.sql
Expected Behavior
This stack was already applied, so I expected
Actual Behavior
Steps to Reproduce
terraform apply
should do the trick.Important Factoids
The issue disappeared once I forced the use of version 1.18 instead of 1.19:
instead of :
References
Could be related to this MR:
#275
The text was updated successfully, but these errors were encountered: