INSERT INTO postgates (at_uri, cid, post_uri, detached, rules, created_at)
VALUES ($1, $2, $3, $4, $5, $6)
ON CONFLICT (at_uri) DO UPDATE SET cid=EXCLUDED.cid,
                                   post_uri=EXCLUDED.post_uri,
                                   detached=EXCLUDED.detached,
                                   rules=EXCLUDED.rules,
                                   indexed_at=NOW()