DFSG NEW Queue

DFSG, Licensing & New Packages Team

bgw-replstatus 1.0.8-3

Package Information

Descriptionreport whether PostgreSQL node is master or standby

bgw_replstatus is a tiny PostgreSQL background worker to cheaply report the replication status of a node. It's intended to be polled by a load balancer such as haproxy.

When installed, a background worker will be started that listens on a TCP port. A connection to this port will get a TCP response back saying either MASTER or STANDBY depending on the current state of the node.

MaintainerMagnus Hagander <magnus@hagander.net>
Changed ByChristoph Berg <myon@debian.org>
Sponsormyon@debian.org
Distributionunstable
Architectureany
VCSgit: https://github.com/mhagander/bgw_replstatus.git (browse)
Popcon Installs35
Binary NEWYes (new binary packages of a source already in sid)
Trackerhttps://tracker.debian.org/pkg/bgw-replstatus
Uploaded2 hours ago

New Package Report

.changes◂
Sourcebgw-replstatus
Version1.0.8-3
Changed-ByChristoph Berg <myon@debian.org>
Architecturesource amd64
Distributionunstable
DateWed, 25 Nov 2026 09:50:30 +0100
Changelog◂
bgw-replstatus (1.0.8-3) unstable; urgency=medium
 .
   * Upload for PostgreSQL 19.
   * Copyright overhaul.
.dsc◂
Componentmain
Package-Listpostgresql-19-bgw-replstatus deb database optional arch=any
Sectiondatabase
Priorityoptional
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: bgw_replstatus
Source: https://github.com/mhagander/bgw_replstatus

Files: *
Copyright: 2017 Magnus Hagander <magnus@hagander.net>
License: PostgreSQL

Files: debian/*
Copyright: 2017 Magnus Hagander <magnus@hagander.net>
           2017-2025 Christoph Berg <myon@debian.org>
License: PostgreSQL

License: PostgreSQL
 Permission to use, copy, modify, and distribute this software and its
 documentation for any purpose, without fee, and without a written agreement
 is hereby granted, provided that the above copyright notice and this
 paragraph and the following two paragraphs appear in all copies.
 .
 IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
 DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
 LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
 DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.
 .
 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
 AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
 ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
 PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

DFSG Assistant LLM REVIEW 0 blocker, 1 important, 0 minor

This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.

Reviewed 0 hours ago.

Report◂

DFSG NEW review for bgw-replstatus version 1.0.8-3

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: Yes
  • Packaging is of good quality: No
  • Issues: 0 blocker, 1 important, 0 minor
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: nothing found

Licensing

Upstream is under the PostgreSQL licence, which is DFSG-free, and debian/copyright reproduces its full text (it is not in /usr/share/common-licenses) with the copyright notice required by its "appear in all copies" condition. The 2017 Magnus Hagander attribution for Files: * is consistent with everything in the tree: no file carries a different holder or licence string, the C source has no header of its own, and the prescan's author check found no unnamed holder. debian/* has its own stanza and every file in the source is matched.

Packaging

Otherwise clean, idiomatic pkg-postgresql packaging: correct per-version binary name and postgresql substvars, no patches, complete Build-Depends, current Standards-Version, an autopkgtest and a sane changelog. One fault remains: the build-time test override is not among the targets dh skips for DEB_BUILD_OPTIONS=nocheck, while the PostgreSQL server it needs (postgresql-all) is marked <!nocheck>, so a nocheck build should fail.

Issues

important packaging 1. override_dh_pgxs_test still runs installcheck with DEB_BUILD_OPTIONS=nocheck, where postgresql-all <!nocheck> leaves no PostgreSQL server to test against ◂
  • Files: debian/rules:6-7, debian/control:12

  • Basis: inferred from what was read, not seen directly

  • Evidence:

    debian/rules:6-7:

    override_dh_pgxs_test:
    	+pg_buildext -o 'shared_preload_libraries=bgw_replstatus' installcheck . . postgresql-%v-bgw-replstatus
    

    debian/control:12: postgresql-all <!nocheck>,

  • Problem: At compat 13 dh skips hook and override targets only for dh_auto_test, dh_dwz and dh_strip when DEB_BUILD_OPTIONS lists nocheck (debhelper tool, compat 13, search "nocheck"), so this override runs pg_buildext ... installcheck regardless. In a nocheck build postgresql-all is not installed and nothing else pulls the server: postgresql-server-dev-all -> postgresql-server-dev-19 depends on postgresql-client-19 and postgresql-common, not on postgresql-19 (apt-cache). pg_buildext installcheck starts a temporary cluster through pg_virtualenv, which needs /usr/lib/postgresql/19/bin/initdb, so the build fails; a build failure with the nocheck profile is release-critical (https://wiki.debian.org/qa.debian.org/FTBFS/nocheck). Residual doubt: postgresql-common is not installed on the reviewing system, so I could not read pg_buildext to rule out that it silently skips a version whose server package is absent (see Not confirmed).

  • Fix: Make the override honour nocheck, e.g. wrap the command in ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) and do nothing otherwise; minimally, take <!nocheck> off postgresql-all so the test really can run.

Verified ◂
  • Read all of debian/ in full: control, control.in, rules, changelog, copyright, pgversions, source/format, tests/control, tests/installcheck, upstream/metadata. There is no debian/patches, so no DEP-3 review was needed.
  • Read every upstream file: LICENSE, Makefile, README.md, bgw_replstatus.c and .github/workflows/installcheck.yml.
  • Licensing: LICENSE names the PostgreSQL licence; debian/copyright reproduces its permission paragraph and both disclaimers in full (required, as it is not under /usr/share/common-licenses), and the licence is DFSG-free. dh_installdocs installs debian/copyright into the binary package, so the "appear in all copies" condition is met.
  • Files: * matches all five upstream files (including .github/workflows/installcheck.yml) and Files: debian/* overrides it for the packaging; every file in the tree is matched by a stanza.
  • Prescan: its author check reported every holder found as named in debian/copyright (2 declared, none missing); it listed no built files, no non-free wording and no patch-created files. bgw_replstatus.c has no copyright header of its own and no other holder string occurs anywhere in the tree, so the single 2017 Magnus Hagander line is not contradicted by the source.
  • Compared the unpacked tree with bgw-replstatus_1.0.8.orig.tar.gz and bgw-replstatus_1.0.8-3.debian.tar.xz: contents agree; the orig tarball also contains upstream's own copy of debian/, i.e. the packaging is developed in the GitHub repository, so Vcs-Git/Vcs-Browser (same URL as Homepage) do satisfy Policy 5.6.26.
  • All Build-Depends exist: postgresql-all 297, postgresql-common-dev 297, postgresql-server-dev-all 297, netcat-openbsd 1.239, and architecture-is-64-bit is provided by architecture-properties 0.2.6+b2.
  • Standards-Version 4.7.4 against Policy 4.7.4.1 (policy tool): first two components match. debhelper-compat 13 is supported, and ${misc:Depends}/${shlibs:Depends}/${postgresql:Depends}/${postgresql:Breaks} are named, which is correct below compat 14.
  • Changelog: top entry 1.0.8-3, distribution unstable, version matches the .dsc and the date is a Wednesday consistent with 2026-11-25; the description and binary package name (postgresql-19-bgw-replstatus) match control.in with PGVERSION replaced.
  • uscan found the packaged version as the newest upstream release (upstream 1.0.8, packaged 1.0.8).
Not confirmed ◂
  • Build with DEB_BUILD_OPTIONS=nocheck: postgresql-common is not installed on the reviewing system, so I could not read pg_buildext/pg_virtualenv to determine whether installcheck skips a version whose server package is missing (build would pass) or fails because initdb/postgres are absent (build fails). The important issue assumes the latter.
  • autopkgtest: debian/tests/control depends on postgresql-common-dev but not postgresql-server-dev-all, while the Makefile unconditionally includes $(PGXS); I could not check whether the autopkgtest environment provides pg_config/pgxs.mk. The maintainer runs this test, so it presumably passes, but a test run would show it.
  • Why the model asked for what a review has no use for. During this review it asked once for something outside the package and the reviewing system (another file of the sandbox, or a URL), or was given part of the review tooling's own configuration, and that was refused or withheld. A model does this when something it has read tells it to, so look in the package for text addressed to a reviewing program, and treat this report with suspicion. Refused: read: "help://read/sources" is not a file of the package or of the reviewing system.
Proposed changes ◂

None.

Uploader's response to the LLM review

The uploader was emailed about the review 0 hours ago.

Back to Dashboard | View all reviews for this package