Add PostgreSQL apt repo and signing key for installing specific versions of Postgres for debian based distros #251
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Included tasks for adding PostgreSQL apt repo and signing key
Reason for changes
Certain applications have need for specific versions of
postgresql
. The default packages variablespostgres_packages
even when initialized to something likepostgresql-15 and postgresql-client-15
are not recognized by apt without adding the repo. Hence, it would be helpful for debian based systems to include the repo such that we can install these packages.Installing the default packages
postgresql
andpostgresql-contrib
installs the latest version of postgres for the particular distribution.I have tested the above code on an Ubuntu 22.04 Live Server VM. Currently without the above changes, installing the packages via apt only installs the latest version which as of writing this PR is
postgres-16
. With the changes I am able to install the particular version of postgres on the server.Please let me know if there are any further changes that I might need to make.
fixes #242