FS#68609 - PostgreSQL 12 won't start due to bad version check

Attached to Project: Arch Linux
Opened by Daniel Quinn (danielquinn) - Friday, 13 November 2020, 10:40 GMT
Last edited by Evangelos Foutras (foutrelis) - Friday, 13 November 2020, 11:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

PostgreSQL v12 was just released and there's a typo in `/usr/bin/postgresql-check-db-dir` that prevents the server from starting. Instead it complains about:

> An old version of the database format was found.

...and dies.

The fix was to set `PGMAJORVERSION=12` and `PREVMAJORVERSION=11` in that script, which makes everything run as-expected (the current values are `13` and `12` respectively).


Additional info:
* Package: extra/postgresql-12.5
* File in question: /usr/bin/postgresql-check-db-dir


Steps to reproduce:
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Friday, 13 November 2020, 11:05 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#68602 

Loading...