Skip to content

Conversation

jgpruitt
Copy link
Collaborator

… oid

We were using the queue table's oid as the first key to pg_try_advisory_xact_lock when fetching work from the queue. Unfortunately, oids are 64-bit, and the two-key version of pg_try_advisory_xact_lock takes two 32-bit integers. This fails if the oid gets sufficiently large.

Each vectorizer has exactly one queue table. So, we can substitute the vectorizer's (32-bit) integer ID for the queue table's OID and still have the same uniqueness guarantee.

@jgpruitt jgpruitt self-assigned this Aug 20, 2025
@jgpruitt jgpruitt requested a review from a team as a code owner August 20, 2025 12:34
@jgpruitt jgpruitt temporarily deployed to internal-contributors August 20, 2025 12:34 — with GitHub Actions Inactive
@jgpruitt
Copy link
Collaborator Author

@jgpruitt jgpruitt temporarily deployed to internal-contributors August 28, 2025 13:02 — with GitHub Actions Inactive
@jgpruitt jgpruitt temporarily deployed to internal-contributors September 3, 2025 13:40 — with GitHub Actions Inactive
@jgpruitt jgpruitt temporarily deployed to internal-contributors September 3, 2025 15:52 — with GitHub Actions Inactive
@jgpruitt jgpruitt temporarily deployed to internal-contributors September 3, 2025 16:00 — with GitHub Actions Inactive
@jgpruitt jgpruitt temporarily deployed to internal-contributors September 3, 2025 16:31 — with GitHub Actions Inactive
@jgpruitt jgpruitt temporarily deployed to internal-contributors September 3, 2025 16:34 — with GitHub Actions Inactive
@jgpruitt jgpruitt temporarily deployed to internal-contributors September 3, 2025 17:32 — with GitHub Actions Inactive
@jgpruitt jgpruitt temporarily deployed to internal-contributors September 3, 2025 18:28 — with GitHub Actions Inactive
@jgpruitt jgpruitt temporarily deployed to internal-contributors September 3, 2025 18:33 — with GitHub Actions Inactive
@jgpruitt jgpruitt temporarily deployed to internal-contributors September 3, 2025 20:28 — with GitHub Actions Inactive
@jgpruitt jgpruitt merged commit 178e3a0 into main Sep 4, 2025
15 of 16 checks passed
@jgpruitt jgpruitt deleted the jgpruitt/fetch-work-query branch September 4, 2025 12:58
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

Successfully merging this pull request may close these issues.

3 participants