Skip to content

Conversation

eputnam
Copy link
Contributor

@eputnam eputnam commented Feb 9, 2017

A community request came in from someone wanting to be able to grant usage on language and it was being blocked by validate_re in ::server::grant. This commit adds LANGUAGE to the allowed list of object types.

Adding LANGUAGE to the initial validation list was not enough, some additional params needed to be defined. Acceptance tests were also added to verify USAGE could be granted on the plpgsql language, which ships with postgres

A community request came in from someone wanting to be able to grant usage on language and it was being blocked by `validate_re` in ::server::grant. This commit adds LANGUAGE to the allowed list of object types.
Adding LANGUAGE to the initial validation list was not enough, some additional params needed to be defined. Acceptance tests were also added to verify USAGE could be granted on the plpgsql language, which ships with postgres
This adds an additional test for the onlyif_exists function which should skip the command if the language specified does not exist. This is a hardcoded psql command that could need to be updated in the future and should be tested for.
@hunner hunner merged commit 4eb2d81 into puppetlabs:master Feb 9, 2017
eputnam added a commit to eputnam/puppetlabs-postgresql that referenced this pull request Feb 9, 2017
Tests from puppetlabs#838 broke because the CREATE AND REPLACE LANGUAGE command is not available until postgresql 9. I originally thought that using only CREATE LANGUAGE would not be idempotent, but it turns out it is. This commit changes CREATE AND REPLACE LANGUAGE to CREATE LANGUAGE.
eputnam added a commit to eputnam/puppetlabs-postgresql that referenced this pull request Feb 9, 2017
Tests from puppetlabs#838 broke because the CREATE AND REPLACE LANGUAGE command is not available until postgresql 9. I originally thought that using only CREATE LANGUAGE would not be idempotent, but it turns out it is. This commit changes CREATE AND REPLACE LANGUAGE to CREATE LANGUAGE.
eputnam added a commit to eputnam/puppetlabs-postgresql that referenced this pull request Feb 10, 2017
Tests from puppetlabs#838 broke because the CREATE AND REPLACE LANGUAGE command is not available until postgresql 9. I originally thought that using only CREATE LANGUAGE would not be idempotent, but it turns out it is. This commit changes CREATE AND REPLACE LANGUAGE to CREATE LANGUAGE.
diogokiss pushed a commit to Tradeshift/puppetlabs-postgresql that referenced this pull request Jan 3, 2019
Tests from puppetlabs#838 broke because the CREATE AND REPLACE LANGUAGE command is not available until postgresql 9. I originally thought that using only CREATE LANGUAGE would not be idempotent, but it turns out it is. This commit changes CREATE AND REPLACE LANGUAGE to CREATE LANGUAGE.
cegeka-jenkins pushed a commit to cegeka/puppet-postgresql that referenced this pull request Feb 3, 2022
Tests from puppetlabs#838 broke because the CREATE AND REPLACE LANGUAGE command is not available until postgresql 9. I originally thought that using only CREATE LANGUAGE would not be idempotent, but it turns out it is. This commit changes CREATE AND REPLACE LANGUAGE to CREATE LANGUAGE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants