Add support for old PostgreSQL binary directories used by Arch Linux
ClosedPublic

Authored by nl6720 on Jun 29 2019, 12:36 PM.

Details

Summary

Arch Linux packages places old PostgreSQL in /opt/pgsql-PG_VERSION/. See https://www.archlinux.org/packages/extra/x86_64/postgresql-old-upgrade/files/ .

Test Plan

The lazy method

Install postgresql and postgresql-old-upgrade.
Create ~/.config/akonadi/akonadiserverrc:

[%General]
Driver=QPSQL

[QPSQL]
ServerPath=/opt/pgsql-10/bin/pg_ctl
InitDbPath=/opt/pgsql-10/bin/initdb

Start Akonadi: akonadictl start.
Stop Akonadi: akonadictl stop.

Update ~/.config/akonadi/akonadiserverrc:

[%General]
Driver=QPSQL

[QPSQL]
...
ServerPath=/usr/bin/pg_ctl
InitDbPath=/usr/bin/initdb
...

Start Akonadi: akonadictl start.
The database cluster should get successfully updated.

Diff Detail

Repository
R165 Akonadi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nl6720 created this revision.Jun 29 2019, 12:36 PM
Restricted Application added a subscriber: kde-pim. · View Herald TranscriptJun 29 2019, 12:36 PM
nl6720 requested review of this revision.Jun 29 2019, 12:36 PM
nl6720 edited the test plan for this revision. (Show Details)Jun 29 2019, 12:54 PM
dvratil accepted this revision.Jun 30 2019, 1:04 PM
dvratil added a subscriber: dvratil.

Thanks! Do you have commit access? If not, I can land this for you.

This revision is now accepted and ready to land.Jun 30 2019, 1:04 PM

No, I don't have commit access. Please land it.

@nl6720 can you please give me the name and email address to attribute the change correctly to you?

@dvratil
Name: nl6720
Email: nl6720@gmail.com

This revision was automatically updated to reflect the committed changes.