Sorting by pg_trgm similarity not possible
I just spent another 2 hours trying to fix the trigram search. I thought it was working before but apparently it doesn't.
I tried wrapping the calc into an expr
As you can see
So what's inside prepare just doesn't get the parameters to the query.
I tried wrapping the calc into an expr
As you can see
(similarity(t0."name"::text, NULL)) keeps evaluating to NULLSo what's inside prepare just doesn't get the parameters to the query.

Ash