Repository navigation
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
jjprusk
marked this pull request as ready for review
November 24, 2026 11:24
Author
|
I have read the CLA Document and I hereby sign the CLA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6045
PostgreSQL startup integrity checks currently start three metadata queries per table for the entire schema at once. Pending work grows with schema size. Separately awaiting each table’s futures can also leave foreign-key/index errors unhandled after a columns failure.
Use three table workers and one
Future.waitfor each table’s metadata. Keep definitions in catalog order, wait for work already started, and stop scheduling more tables after a worker observes failure. This caps metadata requests at nine and adds no public API or dependency.Add a standalone regression suite that exercises the real analyzer orchestration with controlled metadata futures, including large/empty/small schemas, out-of-order completion, schema names, metadata preservation, multiple asynchronous failures, and settlement of in-flight work.
Validation
Validation used an isolated copy of the database package, removing only
resolution: workspacein the validation harness and resolving published sibling packages at 4.1.2. The submitted patch leaves workspace/dependency metadata unchanged. Full monorepo CI and live PostgreSQL tests were not run locally; upstream CI runs separately on this PR.The fixed width is deliberately conservative; it does not guarantee success if all available connections remain blocked or queries themselves exceed acquisition deadlines. Maintainer feedback on the concurrency policy is welcome.
Related report: #4645 (matching symptoms, not a claimed proven root cause).
Prepared with AI assistance. Personally reviewed by Joe Prusk (@jjprusk), who confirmed completion of his review. Upstream CI status is tracked by the PR checks.