Comments (7)
Having experienced the OOM on a vanilla PostgreSQL instance, I started using this (in the init script, or a cron job), to keep Postgres out of its crosshairs:
for p in `pgrep -P 1 postmaster`; do echo "pid $p"; echo -17 > /proc/$p/oom_adj; done
from cstore_fdw.
@btubbs Thanks for reporting this. Improving the memory usage is in our road map. Giving a warning is also an interesting option, and definitely worth looking into.
Can you please send your data file + table schema to [email protected] so I can look into this in more detail?
from cstore_fdw.
@btubbs Can you also try reducing stripe_row_count to see if it helps? Currently we buffer stripe_row_count rows in memory before flushing to disk, so memory usage is "stripe_row_count * average_row_size * constant (usually 3..5)".
The default stripe_row_count is 150000. Based on the number of rows you have in your CSV file, you can adjust it to your use case, so it uses less memory. Decreasing stripe_row_count too much can cause some performance issues.
from cstore_fdw.
As an update, I have looked into the problem of memory usage, and have written a write-up with a list of our options here.
We will make some of the changes in our 1.2 release. Please see our roadmap.
from cstore_fdw.
We have been working on this issue for some time now. Write optimizations gave promising results especially in compressed case. Changes are currently in review stage, they will be here in 1.2 release which is expected to be out in mid jan 2015.
from cstore_fdw.
changes are committed into develop branch, available immediately
from cstore_fdw.
Merged into master. Closing.
from cstore_fdw.
Related Issues (20)
- select count(1) from table where datecolum = '2020-02-01' slow HOT 4
- Missing dependencies in makefile targets
- Cant ./configure in CentOS 07
- How to make use of parallelization with cstore_fdw? HOT 2
- Tests not running on Travis, and missing CircleCI configs
- Support for Heroku Postgres / Citus Data addon? HOT 1
- Is cstore_fdw still supported by developers? HOT 3
- segfault during copy into foreign table HOT 2
- hll build error against v13 HOT 5
- Does cstore_fdw Support Parallel COPY into the Same Table?
- Integer overflow in cstore_clean_table_resources()
- How to insert load / into cstore foreign tables in order HOT 1
- Impact of number of partitions on cstore tables
- Skip indexes are not in use HOT 2
- make installcheck failed, "ERROR: could not open file ... for writing: Permission denied" HOT 1
- Support for PostgreSQL15 HOT 1
- v1.7.0 download files does not support PostgreSQL 13 HOT 1
- 目录不存在
- Unable to upgrade from cstore_fdw to citus
- pg14 is support?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cstore_fdw.