Page MenuHomeFreeBSD

Allow parallel installation of multiple postgresql servers
Needs ReviewPublic

Authored by se on Nov 1 2021, 11:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 10 2024, 2:52 AM
Unknown Object (File)
Jan 10 2024, 2:21 AM
Unknown Object (File)
Jan 1 2024, 7:06 AM
Unknown Object (File)
Oct 27 2023, 2:24 PM
Unknown Object (File)
Sep 3 2023, 4:26 PM
Unknown Object (File)
Nov 27 2022, 2:24 AM

Details

Reviewers
bapt
girgen
Summary

bapt@ suggested to install the PostgreSQL server versions in separate directories to allow several versions to co-exist (https://lists.freebsd.org/pipermail/freebsd-ports/2015-July/099842.html).

This will also simplify the migration from major release to another, which generally requires a dump of the database using the "old" version and a rebuild of the database with the new server version.

Since the PostgreSQL client application is backwards compatible (still supports server version 7.4), only the latest client needs to be provided by a port.

No attempt has been made to adjust ports that use the PostgreSQL server to changed paths of include files or libraries, yet.
There are some 350 ports with some variant of "USES=pgsql", and 23 BUILD_DEPENDS, 37 RUN_DEPENDS, and 69 LIB_DEPENDS on some databases/postgresql* that have to be checked for compatibility with these patches.
The rc.d/postgresql* files will need to be adjusted (e.g. to use names like postgresql14 etc. instead of a plain postgresql, postgresql14_enable, ...)

This patch is not meant to be committed as is, but should allow to assess the suitability of the approach taken.

If this approach is accepted as the basis for further work, then dependent ports can be tested and adjusted, unnecessary client port versions can be removed, etc.

Test Plan

Apply patch and verify that all server versions can be built and installed in parallel.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

se requested review of this revision.Nov 1 2021, 11:12 PM
se created this revision.
se added a reviewer: girgen.

Fix postgresql14-server port to work with new paths

The previous commit moved files of multiple postgresql server versions to non-conflicting directories.
This updated commit contains adjustments of the rc.d/postmaster14 start-up script and other files provided by the port to make them use the new per-version paths.

Only updates to the postgresql version 14 port are included in this patch set.
Patches for the other versions will be provided after review of the proposed version 14 changes.

databases/postgresql14-server/Makefile
116

gnome?