min_completion now works as intended

when i wrote the postgres version, i forgot to re-add that functionality to the query. it's back now, though.