Skip to content

fix(cfs): exclude non-physical relations - #236

Open
Kmortyk wants to merge 3 commits into
devfrom
MMNS-52-fix-relcache-warn
Open

fix(cfs): exclude non-physical relations#236
Kmortyk wants to merge 3 commits into
devfrom
MMNS-52-fix-relcache-warn

Conversation

@Kmortyk

@Kmortyk Kmortyk commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

cfs_compression_ratio() in PG Pro EE 16.13/18 leaks relcache for relations without physical CFS storage.

Early return without relation_close() produces WARNING on every call.

To mitigate that, relkind in CFS query is restricted to ('r','m','S'), and the query is wrapped in a subquery, so the planner calls cfs_compression_ratio only on filtered rows.

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.

1 participant