Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clickhouse fdw has high memory consumption #74

Open
fantom0005 opened this issue Aug 24, 2021 · 1 comment
Open

clickhouse fdw has high memory consumption #74

fantom0005 opened this issue Aug 24, 2021 · 1 comment

Comments

@fantom0005
Copy link

Hello!

We are moving part of our data from Postgres to Clickhouse database and for backward capability with our code we use Clickhouse FDW.

But on simple queries (like COPY (SELECT * FROM big_clickhouse_fdw_table) TO STDOUT) Postgres consumes too much memory. Memory consumption depends on the size of selected data.

It seems that Clickhouse FDW caches whole query results in memory.
Are we right?
How to limit memory consumption?
Are there any settings that can help with it (cache size, spill results to disk, etc)?

@ildus
Copy link
Owner

ildus commented Aug 24, 2021

Hi, unfortunately, there are no such options. The main purpose was to support aggregation queries with the limited amount of data in the result.

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

No branches or pull requests

2 participants