Skip to content

Change the max_memory GUC defaults to 4 GB - #107

Merged
theory merged 1 commit into
mainfrom
max-mem-4g
Oct 9, 2026
Merged

theory merged 1 commit into
mainfrom
max-mem-4g

Conversation

@theory

@theory theory commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

In general we don't want chdb to suck up all the memory on a Postgres box. So limit it to 4G by default. Also allow configuration up to UINT32_MAX (4095 TB LOL) rather than UINT16_MAX (65 GB).

@theory
theory requested a review from serprex October 9, 2026 18:16
@theory theory self-assigned this Oct 9, 2026
@theory
theory force-pushed the max-mem-4g branch 2 times, most recently from 8cf52ce to 99cdc11 Compare October 9, 2026 18:32
In general we don't want chdb to suck up all the memory on a Postgres
box. So limit it to 4G by default. Also allow configuration up to
`INT32_MAX` (2048 TB (LOL)) rather than `UINT16_MAX` (65 GB).
@theory
theory merged commit 6c7695d into main Oct 9, 2026
87 checks passed
@theory
theory deleted the max-mem-4g branch October 9, 2026 18:52
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.

2 participants