INSERT INTO threadgates (at_uri, cid, post_uri, hidden_replies, allow, allowed_lists, record, created_at)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8)
ON CONFLICT (at_uri) DO UPDATE SET cid=EXCLUDED.cid,
                                   hidden_replies=EXCLUDED.hidden_replies,
                                   allow=EXCLUDED.allow,
                                   allowed_lists=EXCLUDED.allowed_lists,
                                   record=EXCLUDED.record,
                                   indexed_at=NOW()