1) If you do BEGIN; SELECT nextval('someseq'); ROLLBACK; the value from the rolled back transaction won't be reused, despite the rollback. That's quite crucial for performance, as otherwise concurrent transactions would not be able to get a sequence value until the first transaction commits/rolls back.
2) If you crash (PG or HW), some sequence values may never end up being used. For performance only every 32nd sequence advancement is WAL logged.
30 years ago my local electric co-op was bragging they got transmission losses down to 4%, when the rest of US was 8% (I'm not sure if that is average or some other statistical term).
But yes, transmission losses exist and are surprisingly large
every step in the chain loses power. You lose power just in the power lines. Every trip through a transformer adds some more loss
Reducing the number of transformers, raising the high side of system voltage, and increasing conductor sizes are all ways to reduce the transmission losses. of course each of those requires investments so that's why it can be variable and also something to brag about
Correct. As I recall the did a customer survey and customers didn't like (among other things) the number of power outages. The main goal was fixing that, and several side effects of that resulting in less line loss.
It's mostly about the distance, isn't it? Iirc even with the most modern ultra high voltage lines, it's about 3% per 1000km. Which honestly doesn't sound too bad, even for really long distances (like solar power from some desert to where people actually live).
Distance is a factor. I do not know what they were measuring (the main power plant was about 1000km away, but I don't know if they counted that or if that was ignored because someone else owned those lines). They were a fairly rural utility with most of the area belonging to farmers (but they do have a couple suburbs and a few small towns).
I don't know the real details, but my educated guess is they raised the voltage, and also they used 3x as many wires (running 3 phase past every house even though almost everybody only used 1 phase). That is I can visually see their insulators on the power posts are larger than neighboring utilities which allows for higher voltage (but may or may not mean higher voltages were used). Likewise I can see the 3 lines on each power pole while neighboring utilities only used one. It is hard to tell from the ground but I suspect they used thicker wires as well.
The thing is, leadership relies on the people actually building the software to provide concrete, accurate feedback about cost. Without that they have no chance to do a decent cost/benefit analysis.
But AI has engendered a collapse in developers’ ability to actually do that. Those of us who are stuck on the vibecoding bandwagon have lost the comprehensive understanding of the systems under our care that we need to understand and explain the quality and maintenance implications of a change.
Worse, if you happen to lose your mind and suggest the initial development cost is anything more than ~zero, your friendly neighborhood Claude keener will publicly shame you for not having sufficient faith in the Glorious Agentic Future. Product leadership will then have no choice but to side with them, not necessarily because they agree, but because they, too, are aware that we’re still in the phase of the hype cycle where openly questioning said hype is a career-limiting move.
The "do we want this" question can also apply to functionality, not just cost/benefit. I've seen AI volunteer "features" that aren't actually useful or are actively harmful to user experience but it generates them because they do make sense in different contexts.
The biggest problem with that right now is that postgres doesn't allow explicit lock acquisitions (via the LOCK stmt) for all the object types. I've been thinking we should change that for a while, albeit partially just because it is useful for writing tests. With that added, a mode that refuses new lock acquisitions wouldn't be that hard...
I invite you to start a discussion on the lists about that feature, I've wished for it before.
Fwiw, I, as someone who has worked on Postgres for a long time, also find it quite tiresome. Like there's plenty stuff I wouldn't use Postgres for, and I can probably get get more out of it than most.
Exactly - these recommendations often come with no context or scale provisions.
Yes Postgres can work in the small for a lot of things, it can even work at surprising scale if you use it according to its strengths.
But if you use it for things it doesn't shine at, at inappropropriate scale - you'll almost certainly run into issues. And resolving those can often be a bigger challenge than choosing a more suitable solution in the first place. But often I think younger/less experienced engineers just have to burn themselves, thus why this never seems to die.
1) If you do BEGIN; SELECT nextval('someseq'); ROLLBACK; the value from the rolled back transaction won't be reused, despite the rollback. That's quite crucial for performance, as otherwise concurrent transactions would not be able to get a sequence value until the first transaction commits/rolls back.
2) If you crash (PG or HW), some sequence values may never end up being used. For performance only every 32nd sequence advancement is WAL logged.
reply