diff options
Diffstat (limited to 'contrib/pg_trgm/trgm_gin.c')
-rw-r--r-- | contrib/pg_trgm/trgm_gin.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/pg_trgm/trgm_gin.c b/contrib/pg_trgm/trgm_gin.c index 33d005ae9a..9a36afa074 100644 --- a/contrib/pg_trgm/trgm_gin.c +++ b/contrib/pg_trgm/trgm_gin.c @@ -53,13 +53,18 @@ Datum gin_trgm_consistent(PG_FUNCTION_ARGS) { bool *check = (bool *) PG_GETARG_POINTER(0); - text *query = (text *) PG_GETARG_TEXT_P(2); + /* StrategyNumber strategy = PG_GETARG_UINT16(1); */ + text *query = PG_GETARG_TEXT_P(2); + bool *recheck = (bool *) PG_GETARG_POINTER(3); bool res = FALSE; TRGM *trg; int4 i, trglen, ntrue = 0; + /* All cases served by this function are inexact */ + *recheck = true; + trg = generate_trgm(VARDATA(query), VARSIZE(query) - VARHDRSZ); trglen = ARRNELEM(trg); |