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:
@@ -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;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user