Hydra, for Lix
Find a file
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
datadog add space 2017-07-26 16:56:16 +01:00
doc Fix bad ordering in projects documentation. 2018-01-17 13:34:01 -08:00
src Create extension pg_trgm in the NixOS module 2019-07-25 16:19:33 +02:00
tests tests: change postgresql socket dir to /tmp 2019-03-29 23:46:38 +02:00
.gitignore tests: change postgresql socket dir to /tmp 2019-03-29 23:46:38 +02:00
bootstrap hydra: Simplify `bootstrap'. 2011-01-14 10:52:47 +00:00
configure.ac Stops the pager from blocking at configurePhase (#618) 2018-12-01 22:01:40 +00:00
COPYING hydra: revert license change 2010-03-29 14:16:46 +00:00
hydra-module.nix Create extension pg_trgm in the NixOS module 2019-07-25 16:19:33 +02:00
INSTALL hydra: use autoconf/-make 2010-09-30 14:29:15 +00:00
Makefile.am Install hydra-module.nix into $out/share/nix 2013-07-28 11:24:31 -04:00
README.md Fix link syntax in README.md (#511) 2017-09-30 22:39:36 +01:00
release.nix test.api: use Hydra perl dependencies to run api-test.pl 2019-06-21 16:57:12 +02:00
shell.nix inNixShell considered harmful 2016-03-22 13:10:37 +01:00
version hydra: fix tarball build, add pre suffix to tarballs 2010-09-30 15:02:42 +00:00

Hydra

Hydra is a continuous integration system based on the Nix package manager. For more information, see the manual.

For development see hacking instructions.


Icons provided free by EmojiOne.