]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Invalidate caches after cranking up a parallel worker transaction.
authorRobert Haas <rhaas@postgresql.org>
Fri, 16 Oct 2015 15:31:23 +0000 (11:31 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 16 Oct 2015 15:33:28 +0000 (11:33 -0400)
commit14129d1c9e2d3afa064651012a55c9c84aa6821a
treee2767f300db984761dcc9052144eb36525d80fed
parentd43e3adc7572d34988967475900dcd4f9e0a7b89
Invalidate caches after cranking up a parallel worker transaction.

Starting a parallel worker transaction changes our notion of which XIDs
are in-progress or committed, and our notion of the current command
counter ID.  Therefore, our view of these caches prior to starting
this transaction may no longer valid.  Defend against that by clearing
them.

This fixes a bug in commit 924bcf4f16d54c55310b28f77686608684734f42.
src/backend/access/transam/parallel.c