Search: Save detected pg version in a persistent term.
This commit is contained in:
parent
f9a4cf2097
commit
67b15cc033
4 changed files with 8 additions and 8 deletions
|
|
@ -20,7 +20,7 @@ defmodule Pleroma.Activity.Search do
|
|||
author = Keyword.get(options, :author)
|
||||
|
||||
search_function =
|
||||
if Application.get_env(:postgres, :version) >= 11 do
|
||||
if :persistent_term.get({Pleroma.Repo, :postgres_version}) >= 11 do
|
||||
:websearch
|
||||
else
|
||||
:plain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue