plpgsql-check 2.11.1-1
Package Information
| Description | plpgsql_check extension for PostgreSQL plpgsql_check is the next generation of plpgsql_lint for PL/pgsql source code. The SQL statements inside PL/pgSQL functions are checked for semantic errors. Features: * check fields of referenced database objects and types inside embedded SQL * using correct types of function parameters * unused variables and function argumens, unmodified OUT argumens * partially detection of dead code (due RETURN command) * detection of missing RETURN command in function * try to identify unwanted hidden casts, that can be performance issue like unused indexes * possibility to collect relations and functions used by function * possibility to check EXECUTE stmt against SQL injection vulnerability |
|---|---|
| Maintainer | Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> |
| Changed By | Christoph Berg <myon@debian.org> |
| Sponsor | myon@debian.org |
| Distribution | unstable |
| Architecture | any |
| VCS | git: https://salsa.debian.org/postgresql/plpgsql-check.git (browse) |
| Popcon Installs | 41 |
| Binary NEW | Yes (new binary packages of a source already in sid) |
| Tracker | https://tracker.debian.org/pkg/plpgsql-check |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Version | 2.11.1-1 |
|---|---|
| Changed-By | Christoph Berg <myon@debian.org> |
| Architecture | source amd64 |
| Distribution | unstable |
| Date | Tue, 24 Nov 2026 16:54:39 +0100 |
| Source | plpgsql-check |
Changelog
plpgsql-check (2.11.1-1) unstable; urgency=medium . * New upstream version 2.11.1. * Upload for PostgreSQL 19. * Copyright overhaul.
.dsc
| Component | main |
|---|---|
| Package-List | postgresql-19-plpgsql-check deb database optional arch=any |
| Section | database |
| Priority | optional |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Comment:
This package was debianized by Stefan Hühner <stefan@huehner.org> on
Wed, 21 Dec 2016 15:17:00 +0100.
Files: *
Copyright: 2013-2026, Pavel Stehule <pavel.stehule@gmail.com>
License: MIT
Files: debian/*
Copyright:
2016, Stefan Hühner <stefan.huehner@openbravo.com>
2020-2026, Christoph Berg <myon@debian.org>
License: MIT
License: MIT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
.
# Note
.
If you like it, send a postcard to address
.
Pavel Stehule
Skalice 12
256 01 Benesov u Prahy
Czech Republic
DFSG Assistant LLM REVIEW 1 blocker, 0 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 1 hour ago.
Report
DFSG NEW review for plpgsql-check version 2.11.1-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 1 blocker, 0 important, 0 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
The tree is otherwise uniformly MIT by Pavel Stehule and debian/copyright (DEP-5) reproduces that licence in full, with a correct debian/* stanza. But src/generic_stmt_walker.c is a modified copy of PostgreSQL's pl_funcs.c statement walker and copies the foreach_ptr/foreach_internal macros verbatim from pg_list.h; its own header says so ("based on ... pl_funcs.c", "cut from pg_list.h"). The PostgreSQL licence requires the copyright notice to appear in all copies, and the file is compiled into postgresql-19-plpgsql-check, yet neither the PostgreSQL Global Development Group nor The Regents of the University of California is named and the file is described as MIT-only.
Packaging
Standard pkg-postgresql packaging: debhelper compat 13 with dh --with pgxs_loop, control generated from control.in for PostgreSQL 19 (the only server version the archive carries), correct ${postgresql:Depends}/${postgresql:Breaks} substvars, installcheck autopkgtest, no patches, no maintainer scripts. Build-Depends are all satisfiable and justified (libicu-dev is documented as needed for ICU-enabled PostgreSQL), no patches to review, and Standards-Version 4.7.4 matches the current Policy 4.7.4.1. No packaging faults found.
Issues
blocker licensing 1. debian/copyright omits the PostgreSQL Global Development Group for src/generic_stmt_walker.c ◂
- Files:
debian/copyright:7-8,src/generic_stmt_walker.c:11-12,src/generic_stmt_walker.c:20-44 - Basis: inferred from what was read, not seen directly
- Evidence: src/generic_stmt_walker.c:11-12
* This code is based on iterator over PL/pgSQL statement tree from/* pl_funcs.c, but modified for plpgsql_check purposes.and line 21* cut from pg_list.h, followed by the verbatim foreach_ptr/foreach_internal macros; debian/copyright has onlyCopyright: 2013-2026, Pavel Stehule <pavel.stehule@gmail.com>/License: MITforFiles: *. - Problem: The walker is a modified copy of PostgreSQL's pl_funcs.c statement walker and the macro block is copied verbatim from pg_list.h, both under the PostgreSQL licence, whose notice must "appear in all copies". The file is built into postgresql-19-plpgsql-check (it is in the Makefile wildcard and meson.build sources and is used by fextra_cache.c, pragma_generator.c and profiler.c), so Policy 2.3 requires those notices in debian/copyright; the PostgreSQL Global Development Group and The Regents of the University of California are not named, and the file is stated to be MIT-only, which misdescribes its licensing.
- Fix: Add a stanza such as
Files: src/generic_stmt_walker.cwithCopyright: 1996-2026, PostgreSQL Global Development Groupand1994, The Regents of the University of California,License: PostgreSQL, plus a stand-aloneLicense: PostgreSQLparagraph with the full licence text (it is not in /usr/share/common-licenses), and keep the MIT licence for the rest of the tree.
Verified ◂
- Read every file under debian/ (control, control.in, rules, changelog, copyright, tests/control, tests/installcheck, source/format, upstream/metadata, pgversions, gitlab-ci.yml) and the .dsc; debian/watch was left alone as instructed.
- Globbed the whole upstream tree (top level, src/, sql/, expected/, examples/, msvc/, .github/) and grepped it for Copyright/(C)/©/SPDX/Licensed-under/GNU/Apache/MPL/public-domain/All-rights-reserved and for non-commercial/no-modification style wording: the only notices are the MIT text in LICENSE and README.md, both naming Pavel Stehule.
- debian/copyright is DEP-5 with the exact Format URI, a Files: * stanza (Pavel Stehule, 2013-2026, MIT), a Files: debian/* stanza (Stefan Hühner 2016, Christoph Berg 2020-2026, MIT) and the full MIT text; the text matches LICENSE and the README licence block.
- The prescan reported no holder missing and listed no files; mechanically that is correct for every file except the PostgreSQL-derived portions of src/generic_stmt_walker.c, which carry no notice and so were invisible to it.
- No built artefacts in the tree: plpgsql_check.typedefs is generated data whose generator typedefs_gen.py is shipped; install_bindist.py is the meson bindist helper; no .o/.so binaries, minified code, PDFs, fonts or images are present, and .gitignore only excludes build outputs.
- msvc/*.sln and *.vcxproj are hand-written Visual Studio project files, not used by the Debian build; the vcxproj references stale local paths (....\Documents\c\plpgsql_check.c) but does not affect the package.
- examples/, sql/ and expected/ are test/example input and expected output data under the same MIT terms; placeholders merged in the scan output were sql comments, not notices.
- Packaging: debhelper compat 13,
dh $@ --with pgxs_loop, no debian/patches, no maintainer scripts, no install/links/docs/dirs files; binary stanza postgresql-19-plpgsql-check matches debian/pgversions (14+) and the archive's only server version; ${misc:Depends}/${postgresql:Depends}/${shlibs:Depends} and ${postgresql:Breaks} are present. - apt-cache: debhelper-compat, postgresql-server-dev-all 297 (Depends postgresql-common-dev, postgresql-server-dev-19), postgresql-all 297 (Depends postgresql-19 ...), postgresql-common-dev 297 and libicu-dev all exist in the archive; libicu-dev is justified by README.md's note that compilation against an ICU-enabled PostgreSQL needs it.
- debian/tests/control runs
pg_buildext installcheckwith Depends make, postgresql-common-dev, @ and Restrictions allow-stderr; debian/rules' override_dh_installdocs installs README.md to all binary packages as intended at compat 13. - Standards-Version 4.7.4 against Policy 4.7.4.1: first two components match, so current; changelog is unstable, version 2.11.1-1, dated 2026-11-24.
- The PostgreSQL licence's requirement to reproduce its notice, and the standard Debian holder form (The Regents of the University of California 1994 / PostgreSQL Global Development Group, License: PostgreSQL), were confirmed from /usr/share/doc/rsync/copyright.
- uscan found the packaged version as the newest upstream release (upstream
2.11.1, packaged2.11.1).
Not confirmed ◂
- pgxs_loop and pg_buildext are not installed on the reviewing system (postgresql-common-dev is present only in the package lists), so the dh sequence's build/test behaviour and the autopkgtest's ability to build the extension in a clean testbed could not be read; no failure is claimed.
- Upstream's repository history was not available, so whether the changelog's "Copyright overhaul" dropped an earlier PostgreSQL stanza cannot be checked.
Proposed changes ◂
None.
Uploader's response to the LLM review
Waiting for the uploader's response until , because the review found serious issues.