database: page upsertRepoPermissionsBatchQuery
Created by: bobheadxi
Paginates permissions insertion for repos a user has access to. Because of Postgres's parameter limit, user-centric permissions sync can fail on instances with more than ~15000 repositories that a user can access.
Affects upsertRepoPermissionsBatchQuery
Closes https://github.com/sourcegraph/sourcegraph/issues/24851 , closes https://github.com/sourcegraph/customer/issues/485