Skip to content
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

postgresql: support JIT #150801

Closed
wants to merge 2 commits into from
Closed

postgresql: support JIT #150801

wants to merge 2 commits into from

Commits on Dec 18, 2021

  1. postgresql: recurse in the derivation itself

    This both makes the code cleaner and allows for expressions like:
    
    `(postgresql.override { jitSupport = true; }).pkgs.postgis`
    
    The change also allows users to configure PostgreSQL flags in NixOS
    module more conveniently:
    
    ```
    {
      services.postgresql.package = pkgs.postgresql.override { jitSupport = true; };
      services.postgresql.extraPlugins = with config.services.postgresql.package.pkgs; [ postgis pg_repack ];
    }
    ```
    
    Before they were required to override `postgresql` in an overlay or
    pass `this` explicitly.
    abbradar committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    42941d3 View commit details
    Browse the repository at this point in the history
  2. postgresql: support JIT

    Disable it by default because of closure size, and to avoid surprise
    negative performance changes in production (were observed with very
    large and complex queries due to compilation time).
    
    See also dcd9455 for a great
    explanation on how JIT interacts with packaging and closure size.
    abbradar committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    0b4b98f View commit details
    Browse the repository at this point in the history