Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backfill: broken for postgresql #655

Open
mrd0ll4r opened this issue Apr 16, 2024 · 1 comment
Open

backfill: broken for postgresql #655

mrd0ll4r opened this issue Apr 16, 2024 · 1 comment

Comments

@mrd0ll4r
Copy link
Contributor

This recent change (https://github.com/bluesky-social/indigo/pull/652/files#diff-059222fb30fa15aa5784cebb59bcf6107a83f88e0d10a8277d85bfbb89c21300R79) broke the backfiller if running on a Postgres db:

SELECT repo FROM gorm_db_jobs INDEXED BY enqueued_job_idx WHERE state  = 'enqueued' LIMIT 20000
panic: loading backfill jobs: ERROR: syntax error at or near "BY" (SQLSTATE 42601)

I guess postgres doesn't have index hinting.

@ericvolp12
Copy link
Collaborator

ericvolp12 commented Apr 16, 2024

Yeah that's my bad, gonna ship a fix in a little bit that should distinguish between SQLite and non-SQLite

GORM has generic index hinting stuff but it doesn't actually work with SQLite lmao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants