<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Robert Haas: parallelism</title><description>Sr. Staff Software Engineer @ Databricks, PostgreSQL Developer and Committer</description><link>https://rhaas.dev/</link><item><title>Using force_parallel_mode Correctly</title><link>https://rhaas.dev/blog/2018/06/using-forceparallelmode-correctly/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-3631353878324080561</guid><description>&lt;p&gt;I admit it: I invented force_parallel_mode. I believed then, and still believe now, that it is valuable for testing purposes. Certainly, testing using force_parallel_mode=on or force_parallel_mode=regress has uncovered many bugs in PostgreSQL’s parallel query support that would otherwise have been very difficult to find. At the same time, it’s pretty clear that this setting has caused enormous confusion, even among PostgreSQL experts. In fact, in my experience, almost everyone who sets force_parallel_mode is doing so for the wrong reasons.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2018/06/using-forceparallelmode-correctly/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 21 Jun 2018 14:47:00 GMT</pubDate><category>parallelism</category><category>postgresql</category><category>testing</category></item><item><title>Parallel Query v2</title><link>https://rhaas.dev/blog/2017/03/parallel-query-v2/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-5354240951847449738</guid><description>&lt;p&gt;A recent Twitter poll asked &lt;a href=&quot;https://twitter.com/postgresql/status/835220785119649792&quot;&gt;What is your favorite upcoming feature of PostgreSQL V10?&lt;/a&gt; In this admittedly unscientific survey, “better parallelism” (37%) beat out “logical replication” (32%) and “native partitioning” (31%). I think it’s fruitless to argue about which of those features is actually most important; the real point is that all of those are amazing features, and PostgreSQL 10 is on track to be an amazing release. There are a number of already-committed or likely-to-be-committed features which in any other release would qualify as headline features, but in this release they’ll have to fight it out with the ones mentioned above.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2017/03/parallel-query-v2/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Tue, 14 Mar 2017 15:56:00 GMT</pubDate><category>parallelism</category><category>postgresql</category></item><item><title>PostgreSQL 9.6 with Parallel Query vs. TPC-H</title><link>https://rhaas.dev/blog/2016/04/postgresql-96-with-parallel-query-vs/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-8271256646052316155</guid><description>&lt;p&gt;I decided to try out parallel query, as implemented in PostgreSQL 9.6devel, on the TPC-H queries. To do this, I followed the directions at &lt;a href=&quot;https://github.com/tvondra/pg_tpch&quot;&gt;https://github.com/tvondra/pg_tpch&lt;/a&gt; - thanks to Tomas Vondra for those instructions. I did the test on an IBM POWER7 server provided to the PostgreSQL community by IBM. I scaled the database to use 10GB of input data; the resulting database size was 22GB, of which 8GB was indexes. I tried out each query just once without really tuning the database at all, except for increasing shared_buffers to 8GB. Then I tested them again after enabling parallel query by configuring max_parallel_degree = 4.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2016/04/postgresql-96-with-parallel-query-vs/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 21 Apr 2016 13:58:00 GMT</pubDate><category>parallelism</category><category>postgresql</category></item><item><title>Parallel Query Is Getting Better And Better</title><link>https://rhaas.dev/blog/2016/03/parallel-query-is-getting-better-and/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-2484980442861477504</guid><description>&lt;p&gt;Back in early November, I &lt;a href=&quot;/blog/2015/11/parallel-sequential-scan-is-committed/&quot;&gt;reported&lt;/a&gt; that the first version of parallel sequential scan had been committed to PostgreSQL 9.6. I’m pleased to report that a number of significant enhancements have been made since then. Of those, the two that are by the far the most important are that we now support &lt;a href=&quot;http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=45be99f8cd5d606086e0a458c9c72910ba8a613d&quot;&gt;parallel joins&lt;/a&gt; and &lt;a href=&quot;http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=e06a38965b3bcdaa881e7e06892d4d8ab6c2c980&quot;&gt;parallel aggregation&lt;/a&gt; - which means that the range of queries that can benefit from parallelism is now far broader than just sequential scans.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2016/03/parallel-query-is-getting-better-and/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 21 Mar 2016 23:25:00 GMT</pubDate><category>parallelism</category><category>postgresql</category></item><item><title>Parallel Sequential Scan is Committed!</title><link>https://rhaas.dev/blog/2015/11/parallel-sequential-scan-is-committed/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-4733300412348462132</guid><description>&lt;p&gt;I &lt;a href=&quot;/blog/2015/03/parallel-sequential-scan-for-postgresql/&quot;&gt;previously suggested&lt;/a&gt; that we might be able to get parallel sequential scan committed to PostgreSQL 9.5. That did not happen. However, I’m pleased to report that I’ve just committed the first version of parallel sequential scan to PostgreSQL’s master branch, with a view toward having it included in the upcoming PostgreSQL 9.6 release.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2015/11/parallel-sequential-scan-is-committed/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 11 Nov 2015 15:53:00 GMT</pubDate><category>parallelism</category><category>postgresql</category></item><item><title>Planning Parallel and Distributed Queries</title><link>https://rhaas.dev/blog/2015/10/planning-parallel-and-distributed/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-251943724208334246</guid><description>&lt;p&gt;I have been somewhat lax about blogging for the last six months or so due to having been even busier than usual with various projects, and I think that’s likely to continue for at least the next month or two as I work to finish the first version of parallel query for PostgreSQL. If you have been following the PostgreSQL commit log recently, you will have noticed many new commits building up towards that goal.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2015/10/planning-parallel-and-distributed/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 30 Oct 2015 14:32:00 GMT</pubDate><category>parallelism</category><category>postgresql</category></item><item><title>Parallel Sequential Scan for PostgreSQL 9.5</title><link>https://rhaas.dev/blog/2015/03/parallel-sequential-scan-for-postgresql/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-431931489303307488</guid><description>&lt;p&gt;&lt;a href=&quot;http://amitkapila16.blogspot.in/&quot;&gt;Amit Kapila&lt;/a&gt; and I have been working very hard to make parallel sequential scan ready to commit to PostgreSQL 9.5. It is not all there yet, but we are making very good progress. I’m very grateful to everyone in the PostgreSQL community who has helped us with review and testing, and I hope that more people will join the effort. Getting a feature of this size and complexity completed is obviously a huge undertaking, and a significant amount of work remains to be done. Not a whole lot of brand-new code remains to be written, I hope, but there are known issues with the existing patches where we need to improve the code, and I’m sure there are also bugs we haven’t found yet.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2015/03/parallel-sequential-scan-for-postgresql/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 18 Mar 2015 20:45:00 GMT</pubDate><category>parallelism</category><category>postgresql</category></item><item><title>Parallelism Update</title><link>https://rhaas.dev/blog/2014/12/parallelism-update/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-2737887161908422715</guid><description>&lt;p&gt;It’s been over a year since I last &lt;a href=&quot;/blog/2013/10/parallelism-progress/&quot;&gt;blogged about parallelism&lt;/a&gt;, so I think I’m past due for an update, especially because some exciting things are happening.&lt;/p&gt;
&lt;p&gt;First, Amit Kapila has published a &lt;a href=&quot;http://www.postgresql.org/message-id/CAA4eK1KHWha5_NqxFZFBZ=ZFkkBSwf+2Z6htJFV+YVY_LW9cQA@mail.gmail.com&quot;&gt;draft patch for parallel sequential scan&lt;/a&gt;. Many things remain to be improved about this patch, which is neither as robust as it needs to be nor as performant as we’d like it to be nor as well-modularized as it really should be. But it exists, and it passes simple tests, and that is a big step forward. Even better, on most of &lt;a href=&quot;http://www.postgresql.org/message-id/CAA4eK1+O2fZe88NpxmMne94bwBKUEcx-2yuAe-MTYpbuoJ0NCw@mail.gmail.com&quot;&gt;Amit’s tests&lt;/a&gt;, it shows a very substantial speed-up over a non-parallel sequential scan.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2014/12/parallelism-update/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Mon, 22 Dec 2014 20:45:00 GMT</pubDate><category>parallelism</category><category>postgresql</category></item><item><title>Parallelism Progress</title><link>https://rhaas.dev/blog/2013/10/parallelism-progress/</link><guid isPermaLink="false">tag:blogger.com,1999:blog-20038672.post-3110371889552019865</guid><description>&lt;p&gt;For the last several months, I have been spending a large percentage of my time trying to bring parallelism to PostgreSQL. &lt;a href=&quot;/blog/2010/05/lots-and-lots-of-postgresql-feature/&quot;&gt;Previous&lt;/a&gt; &lt;a href=&quot;http://petereisentraut.blogspot.com/2009/07/uservoice-votes-have-materialized.html&quot;&gt;blog&lt;/a&gt; &lt;a href=&quot;http://it.toolbox.com/blogs/database-soup/postgresql-development-priorities-31886&quot;&gt;posts&lt;/a&gt; on the future direction of PostgreSQL development have often mentioned this as a priority, although the top spot has usually been reserved for materialized views, a feature which now exists in PostgreSQL 9.3 and which &lt;a href=&quot;http://www.depesz.com/2013/07/22/waiting-for-9-4-add-support-for-refresh-materialized-view-concurrently/&quot;&gt;has been improved in PostgreSQL 9.4&lt;/a&gt;. My colleague at EnterpriseDB, &lt;a href=&quot;http://wiki.postgresql.org/wiki/User:Kgrittn&quot;&gt;Kevin Grittner&lt;/a&gt;, is continuing to work on further improvements in that area. But my focus is on parallelism. So, how’s that going?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://rhaas.dev/blog/2013/10/parallelism-progress/&quot;&gt;Read more »&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 17 Oct 2013 15:49:00 GMT</pubDate><category>parallelism</category><category>postgresql</category></item></channel></rss>