index/infras: fixed varchar vs integer comparison in psql, content update