Skip to content

postgresqlPackages.pg_background: init at 1.5#473630

Merged
wolfgangwalther merged 2 commits intoNixOS:masterfrom
mkleczek:postgres/pg_background
Dec 26, 2025
Merged

postgresqlPackages.pg_background: init at 1.5#473630
wolfgangwalther merged 2 commits intoNixOS:masterfrom
mkleczek:postgres/pg_background

Conversation

@mkleczek
Copy link
Contributor

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.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/adding-pg-background-extension-to-postgresql/73567/3

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 12.first-time contribution This PR is the author's first one; please be gentle! labels Dec 23, 2025
@mkleczek mkleczek force-pushed the postgres/pg_background branch from 32e818a to 6949ae3 Compare December 26, 2025 11:46
@nixpkgs-ci nixpkgs-ci bot added the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Dec 26, 2025
@mkleczek mkleczek force-pushed the postgres/pg_background branch 2 times, most recently from fa371d4 to 3d8891e Compare December 26, 2025 12:31
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.
@wolfgangwalther
Copy link
Contributor

Build was still failing, this time missing gssapi. Because pg_background references libpq, it basically needs all the postgres dependencies - thus I changed it to use buildInputs = postgresql.buildInputs. It now builds for me.

@wolfgangwalther
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 473630
Commit: fc99816dc69a3426dc4e61ed352f9f5df12c9ba1


x86_64-linux

✅ 5 packages built:
  • postgresql14Packages.pg_background
  • postgresql15Packages.pg_background
  • postgresql16Packages.pg_background
  • postgresqlPackages.pg_background (postgresql17Packages.pg_background)
  • postgresql18Packages.pg_background

aarch64-linux

✅ 5 packages built:
  • postgresql14Packages.pg_background
  • postgresql15Packages.pg_background
  • postgresql16Packages.pg_background
  • postgresqlPackages.pg_background (postgresql17Packages.pg_background)
  • postgresql18Packages.pg_background

x86_64-darwin

✅ 5 packages built:
  • postgresql14Packages.pg_background
  • postgresql15Packages.pg_background
  • postgresql16Packages.pg_background
  • postgresqlPackages.pg_background (postgresql17Packages.pg_background)
  • postgresql18Packages.pg_background

aarch64-darwin

✅ 5 packages built:
  • postgresql14Packages.pg_background
  • postgresql15Packages.pg_background
  • postgresql16Packages.pg_background
  • postgresqlPackages.pg_background (postgresql17Packages.pg_background)
  • postgresql18Packages.pg_background

@wolfgangwalther
Copy link
Contributor

Welcome to Nixpkgs :)

@wolfgangwalther wolfgangwalther added this pull request to the merge queue Dec 26, 2025
Merged via the queue into NixOS:master with commit c8b29bb Dec 26, 2025
23 of 27 checks passed
kfiz pushed a commit to kfiz/nixpkgs that referenced this pull request Dec 26, 2025
kfiz pushed a commit to kfiz/nixpkgs that referenced this pull request Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants