pg_partman VS TimescaleDB

Compare pg_partman vs TimescaleDB and see what are their differences.

TimescaleDB

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension. (by timescale)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
pg_partman TimescaleDB
7 82
1,888 16,500
2.4% 1.0%
7.0 9.8
23 days ago about 23 hours ago
PLpgSQL C
GNU General Public License v3.0 or later 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.

pg_partman

Posts with mentions or reviews of pg_partman. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-22.
  • Dear data engineers
    1 project | /r/dataengineering | 6 Dec 2023
    Assuming these are the types of insights you're looking for, you'll probably look for a way to aggregate data points across/within geographies. postgis is an open source extension for postgres that can help you with this, but there's also quite a few python tools that can help you explore the data, such as geopandas, folium, geoplot. Depending on volume, you might want to partition the data for query performance, and there's another extension pg_partman that can help with that. Just noticed some other posts have recommended something similar.
  • Pgpartman: Partition Management Extension for Postgres
    1 project | news.ycombinator.com | 20 Sep 2023
  • Which is the best way to automate backing up data monthly of tables in a schema and then deleting them?
    1 project | /r/PostgreSQL | 6 Oct 2022
    pg_partman is in RDS >12.5 (here). Pg_partman makes managing data retention relatively easy.
  • Partitioning in Postgres, 2022 Edition
    1 project | news.ycombinator.com | 5 Oct 2022
  • TimescaleDB 2.7 vs. PostgreSQL 14
    4 projects | news.ycombinator.com | 22 Sep 2022
    Whenever I see these posts from TimescaleDB, I always want to ask them how it compares in performance to alternative extensions that implement the same features, rather than just comparing TimescaleDB to vanilla PostgreSQL.

    For example, they mention their automated data retention and how it's achieved with one SQL command, and how DELETEing records is a very costly operation, and how "even if you were using Postgres declarative partitioning you’d still need to automate the process yourself, wasting precious developer time, adding additional requirements, and implementing bespoke code that needs to be supported moving forward".

    There's zero mention anywhere of pg_partman, which does all of these things for you equally as simply, and is a fully OSS free alternative [0].

    I get that it's a PG extension that competes with their product. I know that TimescaleDB does a few other things that pg_partman does not. But I can't help but find its (seemingly) purposeful omission in these, otherwise very thorough blog posts, misleading.

    [0] https://github.com/pgpartman/pg_partman/blob/master/doc/pg_p...

  • Table partitioning by months of the year?
    1 project | /r/PostgreSQL | 23 Aug 2021
    Take a look into this extension which would take care of a good amount of automation for you.
  • Replicating a dynamically partitioned table possible in Postgres 13
    1 project | /r/PostgreSQL | 8 Jan 2021
    You might want to look into pg_partman which has many useful tools around semi-automatic partitioning. According to their documentation they already have a procedure that will do exactly that: create new partitions based on the rows in the default partition.

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 pg_partman and TimescaleDB you can also consider the following projects:

periods - PERIODs and SYSTEM VERSIONING for PostgreSQL

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

pgddl - DDL eXtractor functions for PostgreSQL (ddlx)

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

blog - OpenSource,Database,Business,Minds. git clone --depth 1 https://github.com/digoal/blog

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.

postgres-aws-s3 - aws_s3 postgres extension to import/export data from/to s3 (compatible with aws_s3 extension on AWS RDS)

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

practical-sql - Code and Data for the First Edition of "Practical SQL" by Anthony DeBarros, published by No Starch Press (2018).

temporal_tables - Temporal Tables PostgreSQL Extension

metagration - Metagration: PostgreSQL Migrator in PostgreSQL

pgbouncer - lightweight connection pooler for PostgreSQL