Debian Patches

Status for postgresql-19/19.0-2

Patch Description Author Forwarded Bugs Origin Last update
50-per-version-dirs.patch Use version specific installation directories so that several major versions can be installed in parallel.
* Install lib files into /usr/lib/postgresql/<version>/lib/
* Install server related header files into /usr/include/postgresql/<version>/server/
Martin Pitt <mpitt@debian.org> invalid debian
51-default-sockets-in-var.patch Put server Unix sockets into /var/run/postgresql/ by default
Using /tmp for sockets allows everyone to spoof a PostgreSQL server. Thus use
/var/run/postgresql/ for "system" clusters which run as 'postgres' (user
clusters will still use /tmp). Since system cluster are by far the common case,
set it as default.
Martin Pitt <mpitt@debian.org> invalid
52-tutorial-README.patch Update tutorial README for required build dependencies. Martin Pitt <mpitt@debian.org> invalid
53-pg_service.conf_directory_doc.patch Update pg_service.conf example to tell the Debian specific file location.
===================================================================
Martin Pitt <mpitt@debian.org> invalid
54-debian-alternatives-for-external-tools.patch Use Debian alternatives for external tools instead of hardcoded programs Martin Pitt <mpitt@debian.org> invalid
70-history Document Debian location of release notes files. Christoph Berg <myon@debian.org> invalid
filter-debug-prefix-map To make the PostgreSQL server packages build reproducibly, we need to remove
the build path from -fdebug-prefix-map and -ffile-prefix-map in CFLAGS.

* The actual server build still uses the original CFLAGS so the build path is
correctly mapped in the object files.
* The information printed by the pg_config binary and the system view is
filtered in src/common/Makefile and the configure script.
* The build paths stored in Makefile.global are filtered in debian/rules.
(abs_top_builddir, abs_top_srcdir, configure_args, CFLAGS)
* To make PGXS module builds reproducible, pg_buildext copies the environment
CFLAGS to COPT where Makefile.global picks them up, using the prefix maps
from dpkg-buildflags.
no
libpgport-pkglibdir Move libpgport/libpgcommon/libpgfeutils from libdir to pkglibdir This allows client applications to link to version-specific libraries.
Used by pg-checksums.
Christoph Berg <myon@debian.org> invalid
autoconf2.69 no
pgstat-report-conflicts-immediately.patch no
libpq.pc-no-libcurl libpq.pc: Drop libcurl from Requires.private PostgreSQL 18 added libcurl to PKG_CONFIG_REQUIRES_PRIVATE in
src/interfaces/libpq/Makefile, because clients linking libpq.a statically
get libpq-oauth, and libpq-oauth needs libcurl. pkgconf, however, resolves
Requires.private even for --cflags and gives up if any listed module has no
.pc file:
.
Package 'libcurl', required by 'libpq', not found
.
libpq-dev depends on libssl-dev but not on libcurl4-openssl-dev, so
"pkg-config --cflags libpq" exits non-zero and prints nothing. Programs
that use it to locate libpq-fe.h then fail to build even though the headers
need nothing from libcurl; the autopkgtests of hoel and rust-pq-sys are two
examples. "pkg-config --libs libpq" still works, since private dependencies
are not expanded when linking dynamically.
.
The alternatives discussed on pgsql-hackers were to make libpq-dev depend
on libcurl4-openssl-dev, or to have every libpq consumer build-depend on it
itself. Both pull an otherwise unrelated development package into the
dependency chain and make pkgconf emit libcurl's include flags as well.
.
Upstream follows the pkg-config FAQ, which recommends Requires.private for
private dependencies precisely so that --libs --static works, and there was
no agreement on the semantics of the proposed Requires.internal. The thread
"libcurl in libpq.pc" ends with the issue being left to distributions to
work around:
https://postgr.es/m/aCHScGj9_dAo-gOM@msg.df7cb.de/
.
Since all libpq users in Debian link dynamically, drop libcurl from
Requires.private and add -lcurl to the private link flags instead:
--cflags now succeeds without libcurl4-openssl-dev, and static linkers
still get -lcurl from --libs --static, or a meaningful "libcurl not found"
from their own linker if it is missing.
Christoph Berg <myon@debian.org> not-needed
hurd-postmaster-socket-send [PATCH v1] Add an additional check in raw_connect_works for the Hurd.
The function raw_connect_works() tests whether raw sockets work for the
postmaster TAP tests. While creating the socket does work on the Hurd,
the TAP test does a subsequent send() on it which fails on the Hurd with
"Cannot determine peer address". To circumvent this, try a send() and
catch this error as well.
Michael Banck <mbanck@debian.org> no 2026-02-13

All known versions for source package 'postgresql-19'

Links