TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PostgreSQL 14

950 pointsby jkatz05over 3 years ago

29 comments

skrebbelover 3 years ago
These changes look fantastic.<p>If I may hijack the thread with some more general complaints though, I wish the Postgres team would someday prioritize migration. Like make it easier to make all kinds of DB changes on a live DB, make it easier to upgrade between postgres versions with zero (or low) downtime, etc etc.<p>Warnings when the migration you&#x27;re about to do is likely to take ages because for some reason it&#x27;s going to lock the entire table, instant column aliases to make renames easier, instant column aliases with runtime typecasts to make type migrations easier, etc etc etc. All this stuff is currently extremely painful for, afaict, no good reason (other than &quot;nobody coded it&quot;, which is of course a great reason in OSS land).<p>I feel like there&#x27;s a certain level of stockholm syndrome in the sense that to PG experts, these things aren&#x27;t that painful anymore because they know all the pitfalls and gotchas and it&#x27;s part of why they&#x27;re such valued engineers.
评论 #28707104 未加载
评论 #28707666 未加载
评论 #28708212 未加载
评论 #28707577 未加载
评论 #28707243 未加载
评论 #28708554 未加载
评论 #28707054 未加载
评论 #28709035 未加载
评论 #28708773 未加载
hyper_realityover 3 years ago
PostgreSQL is one of the most powerful and reliable pieces of software I&#x27;ve seen run at large scale, major kudos to all the maintainers for the improvements that keep being added.<p>&gt; PostgreSQL 14 extends its performance gains to the vacuuming system, including optimizations for reducing overhead from B-Trees. This release also adds a vacuum &quot;emergency mode&quot; that is designed to prevent transaction ID wraparound<p>Dealing with transaction ID wraparounds in Postgres was one of the most daunting but fun experiences for me as a young SRE. Each time a transaction modifies rows in a PG database, it increments the transaction ID counter. This counter is stored as a 32-bit integer and it&#x27;s critical to the MVCC transaction semantics - a transaction with a higher ID should not be visible to a transaction with a lower ID. If the value hits 2 billion and wraps around, disaster strikes as past transactions now appear to be in the future. If PG detects it is reaching that point, it complains loudly and eventually stops further writes to the database to prevent data loss.<p>Postgres avoids getting anywhere close to this situation in almost all deployments by performing routine &quot;auto-vacuums&quot; which mark old row versions as &quot;frozen&quot; so they are no longer using up transaction ID slots. However, there are a couple situations where vacuum will not be able to clean up enough row versions. In our case, this was due to long-running transactions that consumed IDs but never finished. Also it is possible but highly inadvisable to disable auto-vacuums. Here is a postmortem from Sentry who had to deal with this leading to downtime: <a href="https:&#x2F;&#x2F;blog.sentry.io&#x2F;2015&#x2F;07&#x2F;23&#x2F;transaction-id-wraparound-in-postgres" rel="nofollow">https:&#x2F;&#x2F;blog.sentry.io&#x2F;2015&#x2F;07&#x2F;23&#x2F;transaction-id-wraparound-...</a><p>It looks like the new vacuum &quot;emergency mode&quot; functionality starts vacuuming more aggressively when getting closer to the wraparound event, and as with every PG feature highly granular settings are exposed to tweak this behaviour (<a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;about&#x2F;featurematrix&#x2F;detail&#x2F;360&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;about&#x2F;featurematrix&#x2F;detail&#x2F;360&#x2F;</a>)
评论 #28706959 未加载
评论 #28706232 未加载
评论 #28706305 未加载
评论 #28707370 未加载
评论 #28709578 未加载
mattashiiover 3 years ago
Once again, thanks to all the contributors that provided these awesome new features, translations and documentation.<p>It&#x27;s amazing what improvements we can get through public collaboration.
postgresappover 3 years ago
If you want to test the new features on a Mac, we&#x27;ve just uploaded a new release of Postgres.app: <a href="https:&#x2F;&#x2F;postgresapp.com&#x2F;downloads.html" rel="nofollow">https:&#x2F;&#x2F;postgresapp.com&#x2F;downloads.html</a>
评论 #28708536 未加载
评论 #28708604 未加载
darksaintsover 3 years ago
I know this isn&#x27;t even a big enough deal to mention in the news release, but I am massively excited about the new multirange data types. I work with spectrum licensing and range data types are a godsend (for representing spectrum ranges that spectrum licenses grant). However, there are so many scenarios where you want to treat multiple ranges like a single entity (say, for example, an uplink channel and a downlink channel in an FDD band). And there are certain operations like range differences (e.g. &#x27;[10,100)&#x27; - &#x27;[50,60)&#x27;), that aren&#x27;t possible without multirange support. For this, I am incredibly grateful.<p>Also great is the parallel query support for materialized views, connection scalability, query pipelining, and jsonb accessor syntax.
评论 #28707330 未加载
评论 #28714303 未加载
buro9over 3 years ago
Suppose I had a &quot;friend&quot; with a PostgreSQL 9.6 instance (a large single node)... what&#x27;s the best way to upgrade to PostgreSQL 14?
评论 #28707709 未加载
评论 #28706266 未加载
评论 #28706238 未加载
评论 #28707362 未加载
评论 #28706879 未加载
评论 #28706289 未加载
评论 #28706377 未加载
评论 #28706555 未加载
maxpertover 3 years ago
I converted from MySQL (before whole MariaDB and fork), and I&#x27;ve been happier with every new version. My biggest moment of joy was JSONB and it keeps getting better. Can we please make the connections lighter so that I don&#x27;t have to use stuff like pgbouncer in the middle? I would love to see that in future versions.
评论 #28706034 未加载
评论 #28706372 未加载
评论 #28706217 未加载
评论 #28706118 未加载
TOMDMover 3 years ago
PostgreSQL is one of those tools I know I can always rely on for a new use-case. There are very few cases where it can&#x27;t do exactly what I need (large scale vector search&#x2F;retrieval).<p>Congrats on the 14.0 release.<p>The pace of open source has me wondering what we&#x27;ll be seeing 50 years from now.
评论 #28706433 未加载
garyclarke27over 3 years ago
Fantastic piece of software. The only major missing feature that I can think of is Automatic Incremental Materialized View Updates. I&#x27;m hoping that this good work in progress makes it to v15 - <a href="https:&#x2F;&#x2F;yugonagata-pgsql.blogspot.com&#x2F;2021&#x2F;06&#x2F;implementing-incremental-view.html" rel="nofollow">https:&#x2F;&#x2F;yugonagata-pgsql.blogspot.com&#x2F;2021&#x2F;06&#x2F;implementing-i...</a>
评论 #28708507 未加载
johnthussover 3 years ago
This looks like an amazing release! Here are my favorite features in order:<p>• Up to 2x speed up when using many DB connections • ANALYZE runs significantly faster. This should make PG version upgrades much easier. • Reduced index bloat. This has been improving in each of the last few major releases. • JSON subscript syntax, like column[&#x27;key&#x27;] • date_bin function to group timestamps to an interval, like every 15 minutes. • VACUUM &quot;emergency mode&quot; to better prevent transaction ID wraparound
mypastselfover 3 years ago
Somewhat related, but does anybody have suggestions for a quality PostgreSQL desktop GUI tool, akin to pgAdmin3? Not pgAdmin 4, whose usability is vastly inferior.<p>DBeaver is adequate, but not really built with Postgres in mind.
评论 #28706499 未加载
评论 #28706293 未加载
评论 #28706848 未加载
评论 #28709614 未加载
评论 #28706368 未加载
评论 #28706486 未加载
评论 #28706550 未加载
评论 #28706400 未加载
评论 #28709120 未加载
评论 #28706988 未加载
评论 #28707944 未加载
评论 #28708050 未加载
评论 #28712710 未加载
评论 #28706337 未加载
评论 #28707811 未加载
评论 #28707365 未加载
评论 #28706561 未加载
评论 #28714028 未加载
评论 #28707334 未加载
评论 #28709522 未加载
评论 #28707931 未加载
评论 #28707935 未加载
jonplackettover 3 years ago
If you’d like to try out PostgreSQL in a nice friendly hosted fashion then I highly recommend supabase.io<p>I came from MySQL and so I’m still just excited about the basic stuff like authentication and policies, but I really like how they’ve also integrated storage with the same permissions and auth too.<p>It’s also open source so if you can to just host it yourself you stil can.<p>And did I mention they’ll do your auth for you?
评论 #28706186 未加载
评论 #28706127 未加载
评论 #28708689 未加载
rolobioover 3 years ago
Love the JSONB subscripts! It will be so much easier to remember! I may not even have to reference the docs!
评论 #28706255 未加载
评论 #28706111 未加载
netcraftover 3 years ago
And now the wait for RDS to support it. Thanks PG team!
评论 #28708737 未加载
hackandtripover 3 years ago
Any suggestions to learn and go deep in PostgreSQL for someone who worked mostly on NoSQL (MongoDB)?<p>From the few days I have explored it, it is absolutely incredible, so congratulations for the work done and good luck on keeping the quality so high!
评论 #28706609 未加载
评论 #28707990 未加载
评论 #28706192 未加载
评论 #28711946 未加载
PlugaruTover 3 years ago
I&#x27;m trying to understand if with v14 I will be able to connect Debezium to a &quot;slave&quot; node and not to the &quot;master&quot; in order to read the WAL but can&#x27;t figure it out. Can someone help me with this?
评论 #28707998 未加载
评论 #28707107 未加载
评论 #28706509 未加载
rubyist5evaover 3 years ago
Postgres is my bread and butter for pretty much every project. Congratulations to the team, you work on and continue to improve one of the most amazing pieces of software ever created.
ablekhover 3 years ago
Congratulations and thanks to all involved! Do I understand correctly that, at this time, while PG has data sharding and partitioning capabilities, it does not offer some related features found in Citus Open Source (shard rebalancer, distributed SQL engine and transactions) and in Citus on Azure aka Hyperscale (HA and streaming replication, tenant isolation - I&#x27;m especially interested in the latter one)? Are there any plans for PG to move toward this direction?
评论 #28711228 未加载
nicoburnsover 3 years ago
Does anyone know the status of the zheap project? I always hope to say news in postgres release notes, but nothing so far.
评论 #28709282 未加载
ewgweggover 3 years ago
Disappointed by the release. No big changes. Still using processes instead of threads for connections. No build-in sharding&#x2F;high availability (like Sql Server Always On Availability Group). No good way to pass session variables to triggers (like username). No scheduled tasks like in MySql. Temporal tables are still not supported 10 years after the spec. is ready.
streamofdigitsover 3 years ago
the sense of pride is palpable (and well deserved)
评论 #28706474 未加载
83457over 3 years ago
Can someone who uses Babelfish for PostgreSQL compatibility with SQL Server commands please describe their experience, success, hurdles, etc. We would move to PostgreSQL if made easier by such a tool. Thanks!
评论 #28705966 未加载
candiddevmikeover 3 years ago
How does everyone do postgresql upgrades with the least amount of downtime?
评论 #28706710 未加载
评论 #28706072 未加载
TOMDMover 3 years ago
The query parallelism for foreign data wrappers bring PostgreSQL one step closer to being the one system that can tie all your different data sources together into one source.<p>Really exciting stuff.
stronglikedanover 3 years ago
Anyone know where to download it? Looks like they haven&#x27;t updated the download pages, even though they link to them at the end of this post.
评论 #28709170 未加载
ggktkover 3 years ago
PostgreSQL is my favorite database, but I wish it was possible to use it as a library like sqlite. That would let me use it in a lot more places.
I_am_tiberiusover 3 years ago
Anyone know when it will be available on Azure Flexible Server? Also, does anyone know when Flexible Server will leave Preview status?
unixheroover 3 years ago
Congrats to the team. I cannot wait to work on v14.
simonebrunozziover 3 years ago
Here we are, at a fantastic version 14, and still no sign of an MySQL AB-like company able to provide support and extensions to a great piece of open source software. There&#x27;s a few small ones, yes, but nothing at the billion dollar size.<p>I am still unable to understand why.
评论 #28709648 未加载
评论 #28709052 未加载
评论 #28709329 未加载