11 comments

  • bastawhiz13 hours ago
    Clickhouse really nailed this with the acquisition of peerdb. I used it with many terabyte databases and I essentially never thought about it. The only thing we really had to watch for was trying to replicate too much at once (because of the physical compute/io capacity of the postgres or clickhouse clusters).
  • gopalv13 hours ago
    This was basically Vertica&#x27;s party trick for quite a long time to have a WOS and ROS formats for the same row and anti-caching between those two.<p>You could&#x27;ve built a similar system with dezebium and delta lake for quite some time but it would fail compactions, if you run it fast enough. I&#x27;ve seen Oracle GoldenGate 12c do this trick in 2014 or so, using Mysql as the cheap replica. But they are all fragile to schema updates in some direction.<p>The closest batteries-included equivalent to this is the Aurora -&gt; Redshift bridge[1].<p>[1] - <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;rds&#x2F;aurora&#x2F;zero-etl&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;rds&#x2F;aurora&#x2F;zero-etl&#x2F;</a>
    • bastawhiz13 hours ago
      Aurora zero etl was a nightmare for us. Almost any schema changes require a VACUUM FULL for it to continue functioning. On a few occasions, it just stopped running without an obvious explanation, requiring slow and lengthy back and forth threads with AWS support. If it worked as advertised, it would be great, but I can&#x27;t recommend it for any serious production system.
      • fock12 hours ago
        And this is, when it doesn&#x27;t delete data randomly: <a href="https:&#x2F;&#x2F;github.com&#x2F;trinodb&#x2F;trino&#x2F;issues&#x2F;28885" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;trinodb&#x2F;trino&#x2F;issues&#x2F;28885</a> (some enterprise open source was slop before AI even it seems)
  • hasyimibhar5 hours ago
    It&#x27;s interesting to watch how different companies that offer both Postgres and warehousing solution under 1 roof approach the same problem:<p>- ClickHouse focuses on traditional CDC (ClickPipes) and just make it blazingly fast<p>- Databricks leans on their unified storage architecture (LTAP) to avoid copying data (though you can argue there is still a copy in the cache)<p>- Snowflake uses a data mirroring CDC as extension so it runs directly on Postgres<p>I&#x27;m still waiting for a Postgres provider to just let me mirror data directly to Iceberg, so I can plug in my own stateless query engine.
    • mslot3 hours ago
      The challenge is converting primary key updates&#x2F;deletes to row offsets in a columnar table. That requires maintaining an expensive mapping or doing expensive scans, and is not something you want Postgres itself to do. It&#x27;s also this bursty, memory-intensive workload that you&#x27;d rather not have a lot of dedicated infrastructure for.<p>At Snowflake we use Snowflake to do the apply work. Hence end-to-end mirroring has more pieces than just Postgres, but the capturing of changes is cheap enough to do in Postgres directly.<p>(Author)
      • hasyimibhar3 hours ago
        Yes I’m not suggesting to do this inside Postgres. I’m hoping that a Postgres provider can provide this mirroring capability out of the box, similar to how they provide a connection-pooled endpoint out of the box so I don’t have to self-host pgBouncer. I just want to be able to check a box somewhere and have a table in Postgres automatically mirrored to Iceberg, with guarantee that no data is lost. They can charge more for it, I will gladly pay.
    • jbonatakis4 hours ago
      &gt; I&#x27;m still waiting for a Postgres provider to just let me mirror data directly to Iceberg, so I can plug in my own stateless query engine.<p>The issue that each of those providers above has recently adopted Postgres as a secondary product aimed at supporting their main product, an OLAP database or engine, so they don’t want you plugging in your own query engine.<p>I’d bet you’re likely to see this from a Postgres-specific provider first, like Supabase.
      • hasyimibhar3 hours ago
        I’m waiting for Cloudflare R2 to eventually support mirroring Postgres into R2 catalog. It seems like a nice fit because they already have R2 SQL.
    • pepperoni_pizza3 hours ago
      &gt; I&#x27;m still waiting for a Postgres provider to just let me mirror data directly to Iceberg, so I can plug in my own stateless query engine.<p>If you count AWS as Postgres provider, DMS into Kinesis into Firehose can do that.<p>There was preview of just Firehose doing it directly, but AWS have pulled it because it was too unreliable. Maybe they rebuilt it since?
    • rockostrich2 hours ago
      Google: Charges out the wazoo for a half baked product built on top of Dataflow
    • brightball4 hours ago
      Snowflake&#x2F;Crunchydata comes close to doing that with the pglake extension.<p>There’s not a mirror function like what Snowflake offers directly but you can come close with a pgcron to upsert changes to the iceberg tables every so often.<p>You can also purge the table put to the iceberg version every so often too depending on your data needs. Then you can create a query unions the results of both.
  • aboardRat41 hour ago
    What did Center for Disease Control use before? Mysql?
    • bjt41 minutes ago
      In this case CDC = Changed Data Capture.
  • whateveracct13 hours ago
    Snowflake is a really amazing product. It&#x27;s been a delight using it the last few years.
    • arvyy9 hours ago
      as much praise as some people give to it, I feel deeply uncomfortable with an idea of SaaS-only DB tech that you don&#x27;t have an option to self host
      • cheema334 hours ago
        Agreed. I personally am very uncomfortable with the idea of SaaS-only DB tech. Databases I deal with are very large. And we are a small company. Self-hosted works for us. We cannot afford hosted database solutions as they charge by storage and some also by data transfer. From my point of view, 3rd party hosting of databases solves problems we don&#x27;t have. Particularly with AI tools managing our services using ansible&#x2F;terraform, I think we&#x27;d be worse off if we switched to a SaaS product.
    • p_l7 hours ago
      Seeing Postgres articles from Snowflake surprises me a lot though given how there&#x27;s zero relation between Snowflake the product and Postgres itself<p>EDIT: I now see it&#x27;s mainly to do with pushing data out of customer&#x27;s postgres systems into snowflake
      • jbonatakis4 hours ago
        They acquired Crunchy Data and now have some of the most prominent Postgres developers working there.
  • jauntywundrkind11 hours ago
    Although pg_lake is open source, worth noting that it heavily refers to but is missing CDC capabilities.<p>There&#x27;s a bunch of comments&#x2F;links to a closed <a href="https:&#x2F;&#x2F;github.com&#x2F;snowflake-eng&#x2F;sfpg-extension-pg_lake_replication" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;snowflake-eng&#x2F;sfpg-extension-pg_lake_repl...</a>
    • evertheylen6 hours ago
      I&#x27;m interested in pg_lake so I wanted to check out your link, but it seems to be internal to snowflake?
      • plaur7826 hours ago
        pg_lake is an open source Postgres extension based on work done at Crunchy Data prior to the acquisition by Snowflake - you can find the repo here [1] and a blog post with more context on the project here [2]<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;Snowflake-Labs&#x2F;pg_lake" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Snowflake-Labs&#x2F;pg_lake</a><p>[2] <a href="https:&#x2F;&#x2F;www.snowflake.com&#x2F;en&#x2F;blog&#x2F;engineering&#x2F;pg-lake-postgres-lakehouse-integration&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.snowflake.com&#x2F;en&#x2F;blog&#x2F;engineering&#x2F;pg-lake-postgr...</a>
        • evertheylen1 hour ago
          I see you are a co-founder! Thanks for pg_lake. I am actually already heavily using it, was just interested to read about CDC in the context of pg_lake.
      • jauntywundrkind4 hours ago
        Apologies, I could have introduced that better.<p>The article links <a href="https:&#x2F;&#x2F;github.com&#x2F;Snowflake-Labs&#x2F;pg_lake" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Snowflake-Labs&#x2F;pg_lake</a> but if you go looking for CDC, it&#x27;s not there, and all you end up with is links to the private&#x2F;closed repo that I just linked, in various corners and spots. The point is that all the CDC stuff is in the repo we don&#x27;t get access to, that isn&#x27;t open source: <a href="https:&#x2F;&#x2F;github.com&#x2F;snowflake-eng&#x2F;sfpg-extension-pg_lake_replication" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;snowflake-eng&#x2F;sfpg-extension-pg_lake_repl...</a>
  • datadrivenangel3 hours ago
    Now fivetran has more competition. Good.
  • wlindley3 hours ago
    Excellent that Control Data is contributing! Oh wait, I&#x27;m a few decades out of sync
    • kps1 hour ago
      I&#x27;m afraid nobody (else) here remembers Control Data Corporation. But I&#x27;m happy to see the Centers for Disease Control using Postgres.
  • quotrend3 hours ago
    [flagged]
  • holydementor10 hours ago
    [flagged]