6 ms·
pg_partman, which is included in most distributions of Postgres (including RDS) can handle some cases - https://github.com/pgpartman/pg_partman https://github.
by yawgmoth 4y ago
pg_partman, which is included in most distributions of Postgres (including RDS) can handle some cases
- https://github.com/pgpartman/pg_partman https://github.com/pgpartman/pg_partman
- https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL_Partitions.html https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Postg...
- eatonphil 4y agoTimescale is just an extension too, but still I wonder why Postgres should not support automatic partition management themselves.
- CSDude 4y agoTimescale is not just an extension. It offers many features and a restrictive license. Partman is just a utility. But I agree something like partman should be part of core Postgres
- xdanger 4y agoIt's just an extension. You can build the Apache 2.0 part of the extension and ignore the Timescale License parts. Those parts are mainly about multinode, compression and continuous aggregates. TSL is mainly about not competing with their cloud offerings. So you can't run a database-as-a-service for time series data with it. More about the license: https://www.timescale.com/blog/building-open-source-business-in-cloud-era-v2/ https://www.timescale.com/blog/building-open-source-business... Comparison about the open source and community editions: https://docs.timescale.com/timescaledb/latest/timescaledb-edition-comparison/ https://docs.timescale.com/timescaledb/latest/timescaledb-ed...
- CSDude 4y agoWhy would I build a part of it manually when pgpartman is already available? It’s just an extension as its just code. Regardless of what they say on a public page, that is a vague license. Can I use Timescale to provide a SaaS service that collects application traces, and I provide a DSL to query the database that is not exposing the DB directly? No, its a gray area.
- mfreed 4y ago"Can I use Timescale to provide a SaaS service that collects application traces, and I provide a DSL to query the database that is not exposing the DB directly?" Yes you can. (Timescale co-founder here) The vast majority of people using TimescaleDB use our community/open-source software (rather than managed Cloud), and vast vast majority of those use the TSL (Community) edition, including many as part of their SaaS service. It's a three-part test for asking "is this a value added service?" [0] Given the way your have described your service, sounds like a clear "Yes". - Is your SaaS service primarily different than a database product/service? Yes. - Is the main value of your SaaS service different than that of a time-series database, and you aren't primarily offering your SaaS service as a time-series database? Yes. - Are users prevented from directly defining internal table structures through the database DDL? Presumably yes. [0] https://www.timescale.com/legal/licenses#section-3-10-value-added-products-or-services https://www.timescale.com/legal/licenses#section-3-10-value-...
- boomskats 4y agoAs someone previously sceptical of the wording in your proprietary license, I appreciate the clarification for this use case & the rationale behind those license terms.
- eska 4y agoI asked this question in their chat, the CEO answered within minutes that it’s allowed.
- boomskats 4y agopg_partman is awesome. The SQL syntax for partitioning isn't dissimilar to your example (since PG11?), but like you say, it's the automatic creation and cleanup of partitions that's it's missing. pg_partman used to have to do a lot more things, but nowadays you can just have it do the job of creating X future partitions for you at a given interval, and truncating partitions older than retention period Y. It's a great extension. We have used it in production for a few years now, as part of a commercial on-prem observability tool (an app that keeps around 1TB of data at any one time, written at avg 15mb/sec, maybe 500ish partitions, user configurable retention strategy). It is extremely reliable. Support for Keith F working on it is one of the reasons I like Crunchy. edit: I clearly didn't read the link before writing this