Skip to content

postgresql: fix nixos tests and add xml support #27405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 20, 2017
Merged

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

Sorry, something went wrong.

rvl added 2 commits July 15, 2017 14:54

Verified

This commit was signed with the committer’s verified signature.
ijjk JJ Kasper
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.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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

Verified

This commit was signed with the committer’s verified signature.
ijjk JJ Kasper
@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.

None yet

4 participants