Skip to content

Add Owned::memory_allocated - #59

Merged
sgrif merged 1 commit into
mainfrom
sg-mem-allocated
Oct 1, 2026
Merged

sgrif merged 1 commit into
mainfrom
sg-mem-allocated

Conversation

@sgrif

@sgrif sgrif commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

This function returns the number of bytes allocated onto the memory context owned by that node. I'm not entirely clear if this is the amount of memory managed by the arena, or if its the amount of memory that's be palloc'd onto it, but this is literally the only thing resembling memory allocation stats that libpg_query links other than a function to print stats to stdout which we don't want

This function returns the number of bytes allocated onto the memory
context owned by that node. I'm not entirely clear if this is the amount
of memory managed by the arena, or if its the amount of memory that's be
palloc'd onto it, but this is literally the only thing resembling memory
allocation stats that `libpg_query` links other than a function to print
stats to stdout which we don't want
@sgrif
sgrif requested a review from levkk October 1, 2026 17:47
@sgrif
sgrif merged commit 89937b1 into main Oct 1, 2026
1 check passed
@sgrif
sgrif deleted the sg-mem-allocated branch October 1, 2026 18:00
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