Repository navigation
Conversation
Pin storage-less parents with ACCESS SHARE. Fence inheritance catalog writes and recheck the original topology after the cut to detect a commit that had already written its catalog entries. Keep the physical heap, TOAST and index locks through the cut. Advertise compatibility in the installed definition so the managed sweeper can check each Project database before analyzing its parents. Exercise both acquisition orders and an in-flight partition attachment using the ordinary collector against PostgreSQL 18.6. Co-Authored-By: GPT 6.2 sol <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VYytLf2PUQ2RVpEZYENzsq
This branch has not been deployed
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.
Problem
A managed sweeper runs
ANALYZE ONLYon partitioned parents. PostgreSQL takesSHARE UPDATE EXCLUSIVEduring that statement. The native collector can miss the original UTC cut when its parent-levelSHARE NOWAITconflicts with analysis that started first. A missed cut can leave a billing period unmeasured. Managed sweeper changeChange
ACCESS SHAREon storage-less partitioned parents. Keep the original heap, TOAST and physical index exclusions.SHAREonpg_inherits. Check the same guard transaction after the cut for a topology change that had already been written before the lock and subsequently committed. Refuse a pending concurrent detach. This preserves the D152 requirement that sampled allocations and the original view refer to the same partition tree. D152 native capturepg_classlock during analysis. The sweeper's bounded analysis can yield atpg_classwhen the collector arrives first. PostgreSQL 18.6 analysis · Statistics catalog update · Inheritance catalog (checked 2026-11-28)rememberstack.partition_parent_analyze_compatible=onin the installed guard definition. Managed Projects can enable parent analysis as each database's compatible guard is installed through regular provisioning or upgrade.Verification
ANALYZE ONLY public.mentionsin both acquisition orders with an ordinary collector login, a timeout while the guard holds, and a separate attachment committed during the cut. Existing guard coverage exercises allocation reconciliation, physical writers, BM25 and TOAST.Contributor agreement
Signing on behalf of a legal entity (leave blank if accepting individually):