308 points · by samokhvalov · 4y ago · 95 comments
I know where you are going with this, but I'm not sure his age is relevant as somebody 50+ yo could have many years ahead of them. Having said all of that, here's his contributions to Postgres which speaks to his credibility:
month | commits | files | churn | langs
---------+---------+-------+-------+-----------------------------------------------------
2022-02 | 3 | 7 | 290 | c,sql,text,unknown
2021-12 | 1 | 5 | 30 | c,sql,unknown
2021-11 | 2 | 1 | 38 | c
2021-09 | 2 | 4 | 74 | c,c_header
2021-07 | 3 | 7 | 135 | c,c_header,sql,unknown
2021-06 | 4 | 12 | 992 | c,c_header,sql,unknown
2021-05 | 4 | 5 | 88 | c,sql,unknown
2021-04 | 1 | 4 | 30 | c,c_header,unknown
2021-03 | 1 | 1 | 2 | unknown
2021-02 | 2 | 3 | 20 | c,c_header
2021-01 | 6 | 16 | 1781 | c,c_header,makefile,sql,unknown
2020-12 | 11 | 69 | 12331 | c,c_header,makefile,perl,sql,unknown
2020-11 | 8 | 11 | 288 | c,c_header,makefile,sql,unknown
2020-09 | 4 | 4 | 258 | c,sql,unknown
2020-08 | 1 | 3 | 23 | c
2020-07 | 7 | 12 | 486 | c,c_header,makefile,sql,unknown
2020-06 | 8 | 8 | 766 | c,unknown
2020-05 | 5 | 5 | 96 | c,sql,unknown
2020-04 | 6 | 28 | 1225 | c,c_header,makefile,perl,sql,unknown
2020-03 | 8 | 119 | 5651 | c,c_header,makefile,sql,unknown
2020-01 | 1 | 10 | 627 | c,c_header,sql,unknown
2019-11 | 4 | 5 | 303 | c,text
2019-10 | 2 | 7 | 312 | c,c_header,sql,unknown
2019-09 | 18 | 48 | 3054 | c,c_header,sql,text,unknown
2019-08 | 3 | 4 | 280 | c,sql,unknown
2019-07 | 6 | 18 | 1046 | c,c_header,sql,unknown
2019-06 | 6 | 12 | 134 | c,c_header,sql,unknown
2019-05 | 6 | 9 | 309 | c,unknown
2019-04 | 4 | 17 | 1651 | c,c_header,sql,unknown
2019-03 | 15 | 55 | 11647 | c,c_header,gitignore,makefile,perl,sql,text,unknown
2018-12 | 6 | 24 | 1289 | c,c_header,text,unknown
2018-10 | 3 | 1 | 21 | unknown
2018-09 | 8 | 43 | 2589 | c,c_header,makefile,perl,sql,text,unknown
2018-08 | 5 | 11 | 2474 | c,makefile,sql,unknown
2018-07 | 4 | 17 | 101 | c,c_header
2018-06 | 7 | 9 | 117 | c,unknown
Note, the analysis is only for the email akorotkov@postgresql.org, so if there is more, let me know and I'll update the metrics.> ...This log architecture is optimized for raft consensus-based replication allowing the implementation of active-active multimaster.
I'm a developer but manage 2 PostgreSQL instances each with an async replica. I also manage 1 three-node CockroachDB cluster. It's night and day when it comes to any type of ops (e.g. upgrading a version). There's a lot of reasons to use PostgreSQL (e.g. stored procedures, extensions, ...), but if none of those apply to you, CockroachDB is a better default.
I just finished interviewing someone who went into detail about the difficulty they're having doing a large scale migration or a mission critical large PG cluster (from one DC to another)..it's a multi-team, year long initiative that no one is comfortable about.
In my experience, PG is always the most out-of-date piece of any system. I still see 9.6 here and there, which is now EOL.
The design document will be published later.
Operationally? Mysql. I pick MySQL 8 whenever I can because over the lifetime of a project it's easier.
Pragmatically I'm coming to the uncomfortable (as a Foss advocate) idea that Microsoft SQL Server is a good choice and worth paying for. Features and relative ease of use.
- Forwards (and usually also backwards) compatible disk format, meaning version updates don't require more than a few minutes of downtime. On large datasets, postgresql can require days or weeks.
- Replication works across version differences, making upgrades without any downtime at all easier.
- No need for a vacuum process that can run into trouble with a sustained high write load.
- Page-level compression, reducing storage needs for some types of data quite a bit.
- Clustered primary keys. Without these, some types of queries can become rather slow when your table doesn't fit in memory. (Example: a chat log containing many billions of messages, which you're querying by conversion-id.)
- xtrabackup (innobackupex) is awesome.
Though it scales horizontally, you will need to throw at least 10x or more hardware at it to achieve the same throughput
I don’t have a like for like benchmark, but at least for writes - we’re running with 5 replicas of each range so that’s 5x the disk write i/o just from that.
Add in some network overhead and running raft etc, and you are going to be needing a lot more resources than for PG to maintain a similar throughput - but adding resources when you can scale horizontally is so much easier that the tradeoff is worth it in my experience.
Yes
can you elaborate on these patches? Have you worked on any parser-level hooks? I'm building an extension on PG, and have been trying to extend the parser without touching PG's tree, but it looks impossible at this point.
Could this be extended to support temporal (and Bitemporal) tables? Some storage level optimizations could benefit performance and easy of use for use cases temporarily is important, like financial services systems.
Thanks
I love this, no more vacuums?
That has its own set of tradeoffs - if you're running a long transaction with higher level of serialization, the database has to look for old data in the undo segment which is not only likely vastly slower than normal table, but might not even have the data anymore (any ETL developer have probably seen "Snapshot too old" error from Oracle).
It probably is better tradeoff for some workloads, like high volume of updates with no long-running transactions, but it is more of a different design choice than a "fix" by itself.
I would say "Snapshot too old" isn't essential drawback of undo log. DBMS can keep the the undo log records until all snapshots, which needs them, are released. And this is how OrioleDB behaves. This is also kind of "bloat", but cleanup is cheaper. You just have to cut unclaimed undo log instead of expensive vacuum.
Also, I have to mention that zheap development is inactive for now. And its undo implementation was never complete. Zheap undo works only if you don't update any indexed column. Otherwise, it works as plain heap with write-amplification and bloat.
Is there any hope of improvements to database backup (dump) functionality of Postgres? Coming from SQL Server (and it seems to me that there’s not a lot of people who have experience with both) - I was really taken by surprise how badly performant Postgres dumps are in terms of both backup and restore speed, as well as backup size of similarly sized databases.
The idea would be to upstream the fork I would imagine but continue development of the engine out of tree similar to Citus, Timescale, etc.
1. The first goal is to become a pure extension. That should be done in 2-3 PostgreSQL release cycles. 2. The long term goal is to become a part of PostgreSQL.
Alexander also presented OrioleDB in English at an EDB's event: https://vimeo.com/649616139
I dindn't get this:
`OrioleDB implements default 64-bit transaction identifiers, thus eliminating the well-known and painful wraparound problem`
I thought that PG's 32-bit transaction identifier and wraparound issue was due to the current MVCC implementation that keeps old versions of rows in page tables, so there is the need to vacuum to clean up the dead rows. So my assumption was that using another approach for MVCC, like the UNDO log, this problem wouldn't exist (since page tables would only have the latest version).
What am I missing here?
So rather than a "new database", it's probably better to think of it as an iteration of PostgreSQL
Not trying to take away from the great work done here but the product name and link title would be more clear if it was referred to as a storage engine rather than a DB.
My only gripe is that most are focused in the MOST niches of the scenarios of the MOST exotics of the deployments (the kind that worry about stuff like multi-master across continents).
The RDBMS need more fundamental improvements at the core (like for example, start supporting algebraic types!).
Why was Postgres forked?
I don't want this to come across as negative towards Postgres (or discouraging toward Alexander) but given that these fixes aren't upstream in Postgres - developed by a known/respected contributor, is this indicative to some type of politics / infighting happening within the Postgres community on the architectural direction of their (amazing) database?
I see some comments in this thread touch a little on this topic but why does this need to wait 2-3 release cycles before it's upstreamed to Postgres? That's going to be roughly 4 years from now.
It's not that bad to use a fork during 2-3 release cycles give that: 1) It's not highly divergent fork (the patchset is small). 2) They patchset will be smoothly decrease over that period of time. Also, even 2-3 release cycles isn't that bad in comparison with decades while we have small progress in wicked problems.
That is a very appropriate way to run ahead and add experimental features that could be folded in later, even just later maintaining the extension as part of the OOB release.
It speaks to the architecture of Postgres that this is possible to implement this way.
I would love to see this be successful. Much cleaner than stacking software in front of and around Postgres, and not just a wire-compatible DB like Cockroach.
Any concerns about the name being very similar to OracleDB? At least when I first saw the name I internally within my head read it as that (so could maybe just be me!).