(maint) Fix an intermittent testing failure with time for factsets

Our test data population code was still using its own version of time, instead
of using the one passed as an argument. This made the matchers fail in a racey
way.

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-746) Add capability to use globs when querying fact-nodes

This adds the new operator *> which is a path glob operator that only works
against the `path` type. It works by internally converting the array of
literals and potential globs into a single regular expression for querying
the fact paths.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #1029 from kbarber/ticket/master/pdb-746-fact-nodes-globbing-path-query

(PDB-746) Add capability to use globs when querying fact-nodes
Merge pull request #1030 from kbarber/maint/master/intermittent-testing-failure

(maint) Fix an intermittent testing failure with time for factsets
(PDB-763) Provide trgm index handling for fact_paths

This patch adds a detection routine outside of the normal migration that will
nag the user if they don't have pg_trgm installed (or don't have a compatible
system for trgm and regexp performance, ie. pg 9.3 or above).

If trgm is working, it will manage installing the correct index on the
fact_paths table for regular expression query optimization.

Without a trgm index, globbing and regular expression queries will not use
an index and thus those queries become full table scans.

Signed-off-by: Ken Barber <ken@bob.sh>