Skip to content

Commit 7769f8a

Browse files
committed
Add optional VERSION clause to CREATE EXTENSION
1 parent 029754c commit 7769f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/server/extension.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
case $ensure {
5656
'present': {
57-
$command = "CREATE EXTENSION \"${extension}\""
57+
$command = "CREATE EXTENSION \"${extension}\"${if $version and $version != 'latest' { " VERSION \"${version}\"" } else { '' }}"
5858
$unless_mod = undef
5959
$psql_cmd_require = $package_name ? {
6060
undef => $default_psql_require,

0 commit comments

Comments
 (0)