Skip to content

postgresql: fix nixos tests and add xml support#27405

Merged
fpletz merged 3 commits intoNixOS:masterfrom
rvl:postgresql-xml
Jul 20, 2017
Merged

postgresql: fix nixos tests and add xml support#27405
fpletz merged 3 commits intoNixOS:masterfrom
rvl:postgresql-xml

Conversation

@rvl
Copy link
Contributor

@rvl rvl commented Jul 15, 2017

Motivation for this change

Was looking at the XML functions, and thought it might be generally useful to enable them by default, as is done in Ubuntu and Arch.

Also noticed that the tests could not be invoked with nix-build nixos/tests/postgresql.nix, so fixed that.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/) -- only postgres and psql
  • Fits CONTRIBUTING.md.

/cc @zagy @ocharles

rvl added 2 commits July 15, 2017 14:54
1. Needs to call makeTest or else nothing happens when you run
   `nix-build nixos/tests/postgresql.nix`.

2. Tests run as root, so there needs to be a corresponding user in
   PostgreSQL.
I suspect these functions aren't widely used, but they are enabled in
PostgreSQL on Ubuntu and Arch.
@mention-bot
Copy link

@rvl, thanks for your PR! By analyzing the history of the files in this pull request, we identified @paraseba, @basvandijk and @edolstra to be potential reviewers.

@ocharles
Copy link
Contributor

Looks all good to me. Shall we go ahead and merge?

@rvl
Copy link
Contributor Author

rvl commented Jul 19, 2017 via email

@rvl
Copy link
Contributor Author

rvl commented Jul 19, 2017

Have updated the test now. psql -U postgres would require editing pg_hba.conf, but sudo works.

@fpletz fpletz added 8.has: module (update) This PR changes an existing module in `nixos/` and removed 8.has: module (update) This PR changes an existing module in `nixos/` labels Jul 20, 2017
@fpletz fpletz merged commit 2269648 into NixOS:master Jul 20, 2017
@fpletz
Copy link
Member

fpletz commented Jul 20, 2017

Thanks!

@vcunat vcunat mentioned this pull request Jan 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants