hydra/src
Antoine Eiche 8a0a5ec3a3 Create extension pg_trgm in the NixOS module
The creation of the `pg_trgm` extension needs superuser power. So,
this patch makes the extension creation in the Hydra NixOS module when
a local database is used.

If it is not possible to create this extension (remote database for
instance with nosuperuser), the creation of the `pg_trgm` index is
skipped (this index speedup queries on builds.drvpath) and warnings
are emitted:

    initialising the Hydra database schema...
    WARNING:  Can not create extension pg_trgm: permission denied to create extension "pg_trgm"
    WARNING:  HINT: Temporary provide superuser role to your Hydra Postgresql user and run the script src/sql/upgrade-57.sql
    WARNING:  The pg_trgm index on builds.drvpath has been skipped (slower complex queries on builds.drvpath)

This allows to keep smooth migrations: the migration process doesn't
require a manual step (but this manual step is recommended on big
remote databases).
2019-07-25 16:19:33 +02:00
..
hydra-eval-jobs Merge pull request #627 from samueldr/hydra-eval-jobs/warn-max-heap-size 2019-03-17 19:36:53 -04:00
hydra-evaluator hydra-evaluator: Allow setting the maximum number of concurrent evaluations 2018-05-16 14:22:00 +02:00
hydra-queue-runner allow using a shorter context and increase hydra-notify debug 2019-03-20 15:22:24 -04:00
lib hydra-server: add limit parameter to the search path 2019-06-19 14:30:32 +02:00
libhydra Allow setting GC_INITIAL_HEAP_SIZE for hydra-eval-jobs 2018-05-16 14:14:53 +02:00
root Add evaluation error status to evaluation time on project jobset tab. 2019-05-06 14:08:32 +02:00
script Add hydra-dev-server which uses the classic Catalyst server 2019-01-22 20:34:21 -05:00
sql Create extension pg_trgm in the NixOS module 2019-07-25 16:19:33 +02:00
ttf Add font for the captcha 2013-03-04 12:16:13 +01:00
Makefile.am Remove the pretty-printed log 2016-10-27 14:43:17 +02:00
Makefile.PL * Move everything up one directory. 2009-03-05 13:41:57 +00:00