action-setup-postgres icon indicating copy to clipboard operation
action-setup-postgres copied to clipboard

How to set version of postgresql ?

Open kopax-polyconseil opened this issue 2 years ago • 1 comments

Hello @ikalnytskyi , I am testing your action and it seems it will install posgresql version 14.6 in /usr/local/Cellar/postgresql@14/14.6/bin/postgres.

I would like to have version 12.9 , how can I change the version using your action ?

kopax-polyconseil avatar Jan 18 '23 18:01 kopax-polyconseil

Hey @kopax-polyconseil,

Unfortunately it's not possible to set custom PostgreSQL version at the moment. One of the foundational principles of this action was to use 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 it's auditable and everyone can verify it contains no malicious code.

~~I need to check how hard it would be to support parametrization on all three platforms before I can tell you is this someone on the roadmap or not.~~

It seems it's not complex and the maintenance burden is low. I'll see what I can do about this over the weekend.

ikalnytskyi avatar Jan 19 '23 23:01 ikalnytskyi