Skip to content

Conversation

@ikalnytskyi
Copy link
Owner

@ikalnytskyi ikalnytskyi commented Jan 27, 2023

One of the foundational principles of this action was to use GitHub
runners preinstalled PostgreSQL binaries. The rationale was simple:

  • Make sure the action is fast and no installation is required.
  • Make sure it's safe and doesn't reach out to external servers.
  • Make sure the action is easy to audit.

Unfortunately, those foundational principles aren't working well
anymore due to the following reasons:

  • Ubuntu 24.04 is shipped with PostgreSQL 16, while other runners ship
    PostgreSQL 14. It's not nice when different versions are used on
    different runners.

  • macOS 13 & 14 runners are no longer shipped with preinstalled
    PostgreSQL, which means we have to install the server.

  • Many FOSS users are attracted by using the most recent PostgreSQL,
    and not stuck with few years old release.

This patch adds a new postgres-version input parameter that controls
what major version of PostgreSQL to install. Please note, the parameter
receives only major part of the version, e.g. "14'. It's impossible to
request any minor release.

Co-Authored-By: Roman Podoliaka [email protected]
Co-Authored-By: Ruslan Kiyanchuk [email protected]
Resolves: #14

@ikalnytskyi ikalnytskyi force-pushed the postgres-version branch 9 times, most recently from 062ab3a to d6592a6 Compare January 28, 2023 00:23
@ikalnytskyi ikalnytskyi changed the title Set 'postgres-version' Add 'postgres-version' input parameter Jan 28, 2023
@ikalnytskyi ikalnytskyi force-pushed the postgres-version branch 14 times, most recently from d0ad37f to c755f4a Compare February 6, 2023 23:03
@ikalnytskyi ikalnytskyi force-pushed the postgres-version branch 6 times, most recently from 1414e56 to df742c9 Compare June 29, 2023 21:28
@ikalnytskyi ikalnytskyi force-pushed the postgres-version branch 13 times, most recently from 31b45cc to 91d91a6 Compare June 30, 2023 14:15
@shibotong
Copy link

Hi, is this feature ready?

@ikalnytskyi ikalnytskyi force-pushed the postgres-version branch 10 times, most recently from 654218e to 24b0119 Compare August 11, 2024 16:41
One of the foundational principles of this action was to use GitHub
runners preinstalled PostgreSQL binaries. The rationale was simple:

 * Make sure the action is fast and no installation is required.
 * Make sure it's safe and doesn't reach out to external servers.
 * Make sure the action is easy to audit.

Unfortunately, those foundational principles aren't working well
anymore due to the following reasons:

 * Ubuntu 24.04 is shipped with PostgreSQL 16, while other runners ship
   PostgreSQL 14. It's not nice when different versions are used on
   different runners.

 * macOS 13 & 14 runners are no longer shipped with preinstalled
   PostgreSQL, which means we have to install the server.

 * Many FOSS users are attracted by using the most recent PostgreSQL,
   and not stuck with few years old release.

This patch adds a new `postgres-version` input parameter that controls
what major version of PostgreSQL to install. Please note, the parameter
receives only major part of the version, e.g. "14'. It's impossible to
request any minor release.

Co-Authored-By: Roman Podoliaka <[email protected]>
Co-Authored-By: Ruslan Kiyanchuk <[email protected]>
Resolves: #14
@ikalnytskyi ikalnytskyi merged commit 50da8e8 into master Aug 11, 2024
@ikalnytskyi ikalnytskyi deleted the postgres-version branch August 11, 2024 17:43
Comment on lines +65 to +67
postgres-version:
- "14"
- "15"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this include "16"? or no testing on the default version?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

16 is tested as part of the default job. Just want to reduce the testing matrix a bit. :) It sometimes takes ages to find free windows/macos runners.

* PostgreSQL version can be parametrized.
* Easy [to verify][2] that it DOES NOT contain malicious code.

By default PostgreSQL 15 is used.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this is a typo, and should instead be "16"

PR open:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to set version of postgresql ?

4 participants