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 11 Released

621 pointsby MarkusWinandover 6 years ago

17 comments

Dochesover 6 years ago
Previous HN discussion on the beta (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17144221" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=17144221</a>) and pre-releases (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18043425" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=18043425</a>).
评论 #18251342 未加载
thegabezover 6 years ago
Major enhancements in PostgreSQL 11 include:<p>* Improvements to partitioning functionality, including:<p>-- Add support for partitioning by a hash key<p>-- Add support for PRIMARY KEY, FOREIGN KEY, indexes, and triggers on partitioned tables<p>-- Allow creation of a “default” partition for storing data that does not match any of the remaining partitions<p>-- UPDATE statements that change a partition key column now cause affected rows to be moved to the appropriate partitions<p>-- Improve SELECT performance through enhanced partition elimination strategies during query planning and execution<p>* Improvements to parallelism, including:<p>-- CREATE INDEX can now use parallel processing while building a B-tree index<p>-- Parallelization is now possible in CREATE TABLE ... AS, CREATE MATERIALIZED VIEW, and certain queries using UNION<p>-- Parallelized hash joins and parallelized sequential scans now perform better<p>* SQL stored procedures that support embedded transactions<p>* Optional Just-in-Time (JIT) compilation for some SQL code, speeding evaluation of expressions<p>* Window functions now support all framing options shown in the SQL:2011 standard, including RANGE distance PRECEDING&#x2F;FOLLOWING, GROUPS mode, and frame exclusion options<p>* Covering indexes can now be created, using the INCLUDE clause of CREATE INDEX<p>* Many other useful performance improvements, including the ability to avoid a table rewrite for ALTER TABLE ... ADD COLUMN with a non-null column default<p><a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;11&#x2F;static&#x2F;release-11.html" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;11&#x2F;static&#x2F;release-11.html</a>
评论 #18248671 未加载
评论 #18248772 未加载
评论 #18250524 未加载
评论 #18252165 未加载
bsaulover 6 years ago
Anyone has an idea on what makes postgresql both such a robust and always evolving db ? i’m amazed at the pace at which they’re adding deep features ( such as jit) without breaking anything release after release, in an open source environment.<p>Usually this kind of things are the consequences of a good architecture but i wonder if anyone has an more in-depth explanation on what in the architecture makes it that good.
评论 #18248269 未加载
评论 #18248412 未加载
评论 #18248254 未加载
评论 #18249306 未加载
评论 #18248543 未加载
评论 #18248239 未加载
评论 #18252135 未加载
评论 #18248508 未加载
rb666over 6 years ago
<i>The inclusion of the keywords &quot;quit&quot; and &quot;exit&quot; in the PostgreSQL command-line interface to help make it easier to leave the command-line tool</i><p>YES, at last. This beats parallel queries any day.
评论 #18248660 未加载
评论 #18248691 未加载
评论 #18248466 未加载
评论 #18248676 未加载
enraged_camelover 6 years ago
Serious question: when you need a relational database, are there any technical reasons why you would use anything other than Postgres these days?
评论 #18248426 未加载
评论 #18248350 未加载
评论 #18249279 未加载
评论 #18248335 未加载
评论 #18254712 未加载
评论 #18248328 未加载
评论 #18249922 未加载
评论 #18248364 未加载
评论 #18248801 未加载
评论 #18249455 未加载
评论 #18253721 未加载
评论 #18249566 未加载
评论 #18250825 未加载
评论 #18248853 未加载
评论 #18248578 未加载
评论 #18248669 未加载
netcraftover 6 years ago
I&#x27;ve used lots of different databases over the years and PG is my pick. Thanks to all who were involved, this looks like a great release.
Heliosmasterover 6 years ago
Congratulations for the release! PostgreSQL is, imho, a great example of how open-source software can be stable and performant. Kudos to the team
drejover 6 years ago
I know we got 11 just today, but I can&#x27;t wait for 12 already! Rumours about alternative storage systems are extremely exciting, the idea of having a columnar materialised view (just guessing, not sure what the actual implementation will be like).<p>I can&#x27;t wait to throw out all the columnar databases and the ETLs I have to support them, all just for a few queries.
评论 #18249696 未加载
评论 #18248983 未加载
评论 #18249572 未加载
评论 #18250419 未加载
egeozcanover 6 years ago
Maybe I&#x27;m just spoiled from how fast they implement all these features but I wish that, in the near future, table inheritance would also get some love. In its current state, inheritance needs a lot of manual checks[0]:<p>&gt; unique, primary key, and foreign key constraints are not inherited.<p>[0]: <a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;11&#x2F;static&#x2F;ddl-inherit.html" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;11&#x2F;static&#x2F;ddl-inherit.html</a>
makmanalpover 6 years ago
I&#x27;m very excited about the JIT query compilation stuff finally making it into postgres! A big win for OLAP queries, although it looks like they compile specific expressions within the query rather than the whole query operator, but that could change. I&#x27;m very curious to see how this interacts with the query planner (e.g. when it&#x27;s worth the overhead or not).
评论 #18250968 未加载
SnowingXIVover 6 years ago
PostgreSQL has been such a joy to use for both hobby and professional projects. It&#x27;s so reliable. I wonder when Heroku will support 11 and I&#x27;m curious if upgrading from 10 to 11 with heroku using the simple pg_upgrade would break anything. If it&#x27;s just a pure performance increase, I&#x27;m looking forward to doing it to a few production applications.
generalpfover 6 years ago
I&#x27;m really surprised pgsql procedures weren&#x27;t already able to start, commit, and rollback transactions. Well done devs!
flyinglizardover 6 years ago
Piggybacking for a Postgres question: I have thousands of legacy software instances all around the world, running Postgres with very marginal internet connections (think IoT). I’d like to continuously get all their data into my cloud. Should I use Postgres built in async replication for that?
评论 #18248195 未加载
评论 #18248228 未加载
评论 #18248866 未加载
评论 #18248558 未加载
truth_seekerover 6 years ago
Congratulations and big thanks to PG community &amp; Contributors. It has been my choice for all kinds of systems, OLTP, OLAP and Data warehousing. Its just get better with PG 11<p>I would love to see native column store format, distributed sharding support and in memory tables in future releases.
Nelkinsover 6 years ago
Does anybody know where I can find an example of hash partitioning? I see it mentioned here in the docs but am having trouble finding an example: <a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;11&#x2F;static&#x2F;ddl-partitioning.html" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;11&#x2F;static&#x2F;ddl-partitioning.h...</a><p>edit: Found an example here: <a href="https:&#x2F;&#x2F;pgdash.io&#x2F;blog&#x2F;partition-postgres-11.html" rel="nofollow">https:&#x2F;&#x2F;pgdash.io&#x2F;blog&#x2F;partition-postgres-11.html</a><p>Followup question: Is there a way to re-partition? Say, if your data grows and you want to split the data up further?
评论 #18249640 未加载
评论 #18248619 未加载
shroomover 6 years ago
Looks like a great release even to a Postgres noob like myself. Only just recently started using Postgres but I really enjoy it and it inspires me to dust of my database skills and learn more SQL.<p>I&#x27;d like to take the opportunity and ask if anyone has any recommendations or &quot;must have&quot; settings to the Postgres-terminal. Preferably on MacOSX.<p>For I found the formatting acting kind of weird in some cases when selecting multiple columns or writing long queries. I figure there must be some things you setup at the start and then can not live without...<p>Any other tips are also welcome! Thanks
评论 #18249081 未加载
romedover 6 years ago
Have fun dumping and reloading your entire database.
评论 #18248654 未加载
评论 #18248670 未加载