Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Correctly save role with quoted search path #200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Correctly save role with quoted search path #200

wants to merge 1 commit into from

Conversation

lovromazgon
Copy link

Issue

When defining a search path in a PostgreSQL role which contains a hyphen it is saved as a quoted string in the DB. Once it is retrieved from the database the provider saves the quoted search path in the terraform state. Next time the changes are applied this is detected as a change that will be applied, although it actually is not a change.

Solution

When reading the search path from PostgreSQL we have to trim the quotes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant