git.postgresql.org Git - postgresql.git/commit
2017年12月18日 17:17:37 +0000 (12:17 -0500)
2017年12月18日 17:22:31 +0000 (12:22 -0500)
commit fd7c0fa732d97a4b4ebb58730e6244ea30d0a618
Fix crashes on plans with multiple Gather (Merge) nodes.
es_query_dsa turns out to be broken by design, because it supposes
that there is only one DSA for the whole query, whereas there is
actually one per Gather (Merge) node. For now, work around that
problem by setting and clearing the pointer around the sections of
code that might need it. It's probably a better idea to get rid of
es_query_dsa altogether in favor of having each node keep track
individually of which DSA is relevant, but that seems like more than
we would want to back-patch.
Thomas Munro, reviewed and tested by Andreas Seltenreich, Amit
Kapila, and by me.
Discussion: http://postgr.es/m/CAEepm=1U6as=brnVvMNixEV2tpi8NuyQoTmO8Qef0-VV+=7MDA@mail.gmail.com
This is the main PostgreSQL git repository.
RSS
Atom