Jira (PDB-5454) Is the pg_trgm postgresql extention from postgresql-contrib really needed ?

3 views
Skip to first unread message

Koen Dierckx (Jira)

unread,
Feb 11, 2022, 8:33:02 AM2/11/22
to puppe...@googlegroups.com
Koen Dierckx created an issue
 
PuppetDB / Bug PDB-5454
Is the pg_trgm postgresql extention from postgresql-contrib really needed ?
Issue Type: Bug Bug
Assignee: Unassigned
Components: PuppetDB
Created: 2022/02/11 5:32 AM
Priority: Normal Normal
Reporter: Koen Dierckx

Currently PuppetDB requires the pg_trgm extension from the postgresql-contrib package. 

The puppetdb module will install this extension with the class puppetdb::database::postgresql

This extension is provided by a package and is installed by class postgresql::server::contrib

The package is called postgresql-contrib (on Ubuntu )

 

https://wiki.postgresql.org/wiki/Apt

Note: This repository provides "postgresql", "postgresql-contrib", and "postgresql-client" meta-packages that depend on the latest postgresql-x.y, ... packages, similar to the ones present in Debian and Ubuntu. Once a new PostgreSQL version is released, these meta-packages will be updated to depend on the new version.

 

Unfortunately once a new postgresql version is released, there is no longer a meta package for the previous version available in the official postgresql apt repository for postgresql-contrib

And then the install of the postgresql-contrib package will also pull in the latest version of postgresql as its dependency.

 

In our case, we have configured the puppetdb module, to use postgresql 13

class { 'puppetdb':
  postgres_version => "13",

But on the server, we now have both postgresql 13 and 14 installed

 

So in its core this is a package availability issue on the postgresql side and not a puppetdb issue.

 

But perhaps the pg_trgm functionality can be dropped/replaced ?

And that would drop the need for the postgresql-contrib package

And that avoids the entire dependency issue

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Koen Dierckx (Jira)

unread,
Feb 11, 2022, 8:45:01 AM2/11/22
to puppe...@googlegroups.com
Koen Dierckx updated an issue
Change By: Koen Dierckx
Currently PuppetDB requires the pg_trgm extension from the postgresql-contrib package. 

The puppetdb module will install this extension with the class puppetdb::database::postgresql

This extension is provided by a package and is installed by class postgresql::server::contrib

The package is called postgresql-contrib (on Ubuntu )

 

[https://wiki.postgresql.org/wiki/Apt]

_*Note:* This repository provides "postgresql", "postgresql-contrib", and "postgresql-client" meta-packages that depend on the latest postgresql-x.y, ... packages, similar to the ones present in Debian and Ubuntu. Once a new PostgreSQL version is released, these meta-packages will be updated to depend on the new version._


 

Unfortunately once a new postgresql version is released, there is no longer a meta package for the previous version available in the official postgresql apt repository for postgresql-contrib

And then the install of the postgresql-contrib package will also pull in the latest version of postgresql as its dependency.

 

In our case, we have configured the puppetdb module, to use postgresql 13

class { 'puppetdb':
  postgres_version => "13",

But on the server, we now have both postgresql 13 and 14 installed

 

So in its core this is a package availability issue on the postgresql side and not a puppetdb issue.
 

Created an issue for this here [https://redmine.postgresql.org/issues/7169]

 

But perhaps the pg_trgm functionality can be dropped/replaced ?

And that would drop the need for the postgresql-contrib package

And that avoids the entire dependency issue
Reply all
Reply to author
Forward
0 new messages