Postgrex error with sql library: message: "syntax error at or near \"$0\""

Whoops!

Right so @user974881 you can’t use SQL in with parameters like that. Instead do:

not host = any?(#{state.lock})