We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a62e9 commit 319ea41Copy full SHA for 319ea41
manifests/database/postgresql.pp
@@ -59,8 +59,11 @@
59
# Only install pg_trgm extension, if database it is actually managed by the module
60
if $manage_database {
61
62
- # get the pg contrib to use pg_trgm extension
63
- class { '::postgresql::server::contrib': }
+ # from postgresql version 10 onwards, this extension is no longer inside the contrib package, but is being bundled with the postgresql package itself
+ if (versioncmp($postgres_version, '10') < 0) {
64
+ # get the pg contrib to use pg_trgm extension
65
+ include postgresql::server::contrib
66
+ }
67
68
postgresql::server::extension { 'pg_trgm':
69
database => $database_name,
0 commit comments