postgresqlPackages.pg_background: init at 1.5

Add https://github.com/vibhorkum/pg_background, which allows you to execute arbitrary SQL commands in background worker processes within PostgreSQL (version >= 9.5). It provides a convenient way to offload long-running tasks, perform operations asynchronously, and implement autonomous transactions.
This commit is contained in:
Michał Kłeczek
2025-12-26 18:41:24 +01:00
committed by Wolfgang Walther
parent 7c7eb4b1c7
commit fc99816dc6
@@ -0,0 +1,30 @@
{
fetchFromGitHub,
lib,
postgresql,
postgresqlBuildExtension,
openssl,
}:
postgresqlBuildExtension (finalAttrs: {
pname = "pg_background";
version = "1.5";
src = fetchFromGitHub {
owner = "vibhorkum";
repo = "pg_background";
tag = "v${finalAttrs.version}";
hash = "sha256-9fW5wHdo9r5fLwU8zN2EEVSWxa+7q2qMjPpMo6iCavg=";
};
buildInputs = postgresql.buildInputs;
meta = {
description = "Run PostgreSQL Commands in Background Workers";
homepage = "https://github.com/vibhorkum/pg_background";
changelog = "https://github.com/vibhorkum/pg_background/releases/tag/v${finalAttrs.version}";
maintainers = with lib.maintainers; [ mkleczek ];
platforms = postgresql.meta.platforms;
license = lib.licenses.gpl3Only;
};
})