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
2017-07-26 16:56:16 +01:00
2011-01-14 10:52:47 +00:00
2010-03-29 14:16:46 +00:00
2010-09-30 14:29:15 +00:00
2017-09-30 22:39:36 +01:00
2016-03-22 13:10:37 +01: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.

Description
No description provided
Readme 18 MiB
Languages
Perl 70.5%
C++ 15.5%
Nix 6%
PLpgSQL 3%
Shell 2.3%
Other 2.6%