cstore_fdw VS TimescaleDB

Compare cstore_fdw vs TimescaleDB and see what are their differences.

cstore_fdw

Columnar storage extension for Postgres built as a foreign data wrapper. Check out https://github.com/citusdata/citus for a modernized columnar storage implementation built as a table access method. (by citusdata)

TimescaleDB

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension. (by timescale)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
cstore_fdw TimescaleDB
6 82
1,738 16,472
0.4% 1.8%
2.6 9.8
about 3 years ago 3 days ago
C C
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

cstore_fdw

Posts with mentions or reviews of cstore_fdw. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-21.
  • Moving a Billion Postgres Rows on a $100 Budget
    2 projects | news.ycombinator.com | 21 Feb 2024
    Columnar store PostgreSQL extension exists, here are two but I think I’m missing at least another one:

    https://github.com/citusdata/cstore_fdw

    https://github.com/hydradatabase/hydra

    You can also connect other stores using the foreign data wrappers, like parquet files stored on an object store, duckdb, clickhouse… though the joins aren’t optimised as PostgreSQL would do full scan on the external table when joining.

  • Anything can be a message queue if you use it wrongly enough
    6 projects | news.ycombinator.com | 4 Jun 2023
    I'm definitely not from Citus data -- just a pg zealot fighting the culture war.

    If you want to reach people who can actually help, you probably want to check this link:

    https://github.com/citusdata/cstore_fdw/issues

  • Pg_squeeze: An extension to fix table bloat
    3 projects | news.ycombinator.com | 4 Oct 2022
    That appears to be the case:

    https://github.com/citusdata/cstore_fdw

    >Important notice: Columnar storage is now part of Citus

  • Ingesting an S3 file into an RDS PostgreSQL table
    3 projects | dev.to | 10 Jun 2022
    either we go for RDS, but we stick to the AWS handpicked extensions (exit timescale, citus or their columnar storage, ... ),
  • Postgres and Parquet in the Data Lke
    7 projects | news.ycombinator.com | 3 May 2022
    Re: performance overhead, with FDWs we have to re-munge the data into PostgreSQL's internal row-oriented TupleSlot format again. Postgres also doesn't run aggregations that can take advantage of the columnar format (e.g. CPU vectorization). Citus had some experimental code to get that working [2], but that was before FDWs supported aggregation pushdown. Nowadays it might be possible to basically have an FDW that hooks into the GROUP BY execution and runs a faster version of the aggregation that's optimized for columnar storage. We have a blog post series [3] about how we added agg pushdown support to Multicorn -- similar idea.

    There's also DuckDB which obliterates both of these options when it comes to performance. In my (again limited, not very scientific) benchmarking of on a customer's 3M row table [4] (278MB in cstore_fdw, 140MB in Parquet), I see a 10-20x (1/2s -> 0.1/0.2s) speedup on some basic aggregation queries when querying a Parquet file with DuckDB as opposed to using cstore_fdw/parquet_fdw.

    I think the dream is being able to use DuckDB from within a FDW as an OLAP query engine for PostgreSQL. duckdb_fdw [5] exists, but it basically took sqlite_fdw and connected it to DuckDB's SQLite interface, which means that a lot of operations get lost in translation and aren't pushed down to DuckDB, so it's not much better than plain parquet_fdw.

    This comment is already getting too long, but FDWs can indeed participate in partitions! There's this blog post that I keep meaning to implement where the setup is, a "coordinator" PG instance has a partitioned table, where each partition is a postgres_fdw foreign table that proxies to a "data" PG instance. The "coordinator" node doesn't store any data and only gathers execution results from the "data" nodes. In the article, the "data" nodes store plain old PG tables, but I don't think there's anything preventing them from being parquet_fdw/cstore_fdw tables instead.

    [0] https://github.com/citusdata/cstore_fdw

  • Creating a simple data pipeline
    1 project | /r/dataengineering | 20 May 2021
    The citus extension for postgresql. https://github.com/citusdata/cstore_fdw

TimescaleDB

Posts with mentions or reviews of TimescaleDB. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-11.
  • TimescaleDB: An open-source time-series SQL database
    1 project | news.ycombinator.com | 6 Feb 2024
  • Google Cloud Spanner is now half the cost of Amazon DynamoDB
    2 projects | news.ycombinator.com | 11 Oct 2023
    Don't forget PostgreSQL extensions. For something like a chat log, TimescaleDB (https://www.timescale.com/) can be surprisingly efficient. It will handle partitioning for you, with additional features like data reordering, compression, and retention policies.
  • How to setup Postgres master-master cluster.
    1 project | /r/sysadmin | 5 Sep 2023
    Offboard it to Postgres specialists like https://www.timescale.com/
  • How to Choose the Right MQTT Data Storage for Your Next Project
    8 projects | dev.to | 23 Jul 2023
    TimescaleDB{:target="_blank"}: an extension of PostgreSQL that adds time-series capabilities to the relational database model. It provides scalability and performance optimizations for handling large volumes of time-stamped data while maintaining the flexibility of a relational database.
  • Why does the presence of a large write-only table in a PostgreSQL database cause severe performance degradation?
    1 project | /r/PostgreSQL | 2 Jul 2023
    Have some experience with https://www.timescale.com in this context
  • Opinions and Suggestions for PostgreSQL Extension under Development
    3 projects | /r/PostgreSQL | 29 May 2023
    What about getting in touch with commercial organisations that have products/services based on PostgreSQL? For example Timescale, EDB, and Citus Data, or really any hosting provider that offers a managed PostgreSQL service.
  • I have to do about a million inserts on a table every day that is also under very frequent reads. How should I do that?
    1 project | /r/PostgreSQL | 20 May 2023
    There is Timescale.
  • Ask HN: It's 2023, how do you choose between MySQL and Postgres?
    7 projects | news.ycombinator.com | 11 May 2023
    Friends don't let their friends choose Mysql :)

    A super long time ago (decades) when I was using Oracle regularly I had to make a decision on which way to go. Although Mysql then had the mindshare I thought that Postgres was more similar to Oracle, more standards compliant, and more of a real enterprise type of DB. The rumor was also that Postgres was heavier than MySQL. Too many horror stories of lost data (MyIsam), bad transactions (MyIsam lacks transaction integrity), and the number of Mysql gotchas being a really long list influenced me.

    In time I actually found out that I had underestimated one of the most important attributes of Postgres that was a huge strength over Mysql: the power of community. Because Postgres has a really superb community that can be found on Libera Chat and elsewhere, and they are very willing to help out, I think Postgres has a huge advantage over Mysql. RhodiumToad [Andrew Gierth] https://github.com/RhodiumToad & davidfetter [David Fetter] https://www.linkedin.com/in/davidfetter are incredibly helpful folks.

    I don't know that Postgres' licensing made a huge difference or not but my perception is that there are a ton of 3rd party products based on Postgres but customized to specific DB needs because of the more liberalness of the PG license which is MIT/BSD derived https://www.postgresql.org/about/licence/

    Some of the PG based 3rd party DBs:

    Enterprise DB https://www.enterprisedb.com/ - general purpose PG with some variants

    Greenplum https://greenplum.org/ - Data warehousing

    Crunchydata https://www.crunchydata.com/products/hardened-postgres - high security Postgres for regulated environments

    Citus https://www.citusdata.com - Distributed DB & Columnar

    Timescale https://www.timescale.com/

    Why Choose PG today?

    If you want better ACID: Postgres

    If you want more compliant SQL: Postgres

    If you want more customizability to a variety of use-cases: Postgres using a variant

    If you want the flexibility of using NOSQL at times: Postgres

    If you want more product knowledge reusability for other backend products: Postgres

  • Help with timeseries data
    2 projects | /r/Database | 10 May 2023
    TimescaleDB is Postgres with extensions to automatically partition tables for fast processing of time series data.
  • Postgres for time-series data
    1 project | news.ycombinator.com | 2 May 2023

What are some alternatives?

When comparing cstore_fdw and TimescaleDB you can also consider the following projects:

ZLib - A massively spiffy yet delicately unobtrusive compression library.

ClickHouse - ClickHouse® is a free analytics DBMS for big data

odbc2parquet - A command line tool to query an ODBC data source and write the result into a parquet file.

promscale - [DEPRECATED] Promscale is a unified metric and trace observability backend for Prometheus, Jaeger and OpenTelemetry built on PostgreSQL and TimescaleDB.

zstd - Zstandard - Fast real-time compression algorithm

TDengine - TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, Industrial IoT and DevOps.

cute_headers - Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games

GORM - The fantastic ORM library for Golang, aims to be developer friendly

delta - An open-source storage framework that enables building a Lakehouse architecture with compute engines including Spark, PrestoDB, Flink, Trino, and Hive and APIs

temporal_tables - Temporal Tables PostgreSQL Extension

parquet_fdw - Parquet foreign data wrapper for PostgreSQL

pgbouncer - lightweight connection pooler for PostgreSQL