Packaging request: pglinter (PostgreSQL linting extension, Rust/pgrx)

From: Pierre-Marie Petit <pierremariepetit(at)gmail(dot)com>
To: pgsql-pkg-debian(at)lists(dot)postgresql(dot)org
Subject: Packaging request: pglinter (PostgreSQL linting extension, Rust/pgrx)
Date: 2026-10-29 19:49:35
Message-ID: CA+n=b8JLKm8JDUuTx85va8UWVhELExJR3Gq9VwNtTZk0gOxSKA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

Hello,

I am the maintainer of pglinter, a PostgreSQL extension that analyzes a
database for potential issues, performance problems and best practice
violations (missing primary keys, unindexed foreign keys, redundant
indexes, insecure public schema, and so on), and reports them as text or as
SARIF.

I would like to ask whether pglinter could be packaged in apt.postgresql.org
.

Repository: https://github.com/pmpetit/pglinter
Latest release: 2.0.0
License: Apache-2.0
Language: Rust, built with pgrx 0.18.0
PostgreSQL versions supported: 14, 15, 16, 17, 18
Architectures built and tested in our CI: amd64, arm64
Runtime dependencies: none beyond PostgreSQL itself, no
shared_preload_libraries needed
I have added a debian directory to the repository with:

one binary package per major version: postgresql-NN-pglinter
rules that runs cargo pgrx package against each
/usr/lib/postgresql/NN/bin/pg_config
an offline build against vendored crates (cargo vendor, pinned by
Cargo.lock), so no network access is needed during the build
I have a few questions about how this fits PGDG:

Is building Rust/pgrx extensions in the PGDG build environment supported,
given that cargo-pgrx is not packaged in Debian? Is there a preferred way
to provide it?
Do you prefer the vendored crates shipped in the orig tarball, or a
different approach?
Are there conventions I should follow first, such as debian/control.in with
pg_buildext, a debian/pgversions file, or autopkgtest via pg_buildext
installcheck?
The motivation is to make pglinter available as a CloudNativePG extension
image. Their contribution guidelines require extensions to be installable
from Debian or PGDG packages.

I am happy to adapt the packaging to your requirements and to maintain it
going forward.

Thank you for your time,

Pierre-Marie Petit
https://github.com/pmpetit/pglinter

Responses

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Christoph Berg 2026-10-29 21:51:19 Re: Packaging request: pglinter (PostgreSQL linting extension, Rust/pgrx)
Previous Message apt.postgresql.org Repository Update 2026-10-29 13:14:21 pg-ivm updated to version 1.17-1.pgdg+1