diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-10-16 09:59:57 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-10-16 10:10:23 -0400 |
commit | d43e3adc7572d34988967475900dcd4f9e0a7b89 (patch) | |
tree | 0fe0eb7b4fc90ca9f3dcbe49d514195125c63dcd /src/include/regex/regex.h | |
parent | c451eaf8f628440ad93e933da8f08f7f4545c376 (diff) | |
download | postgresql-d43e3adc7572d34988967475900dcd4f9e0a7b89.tar.gz postgresql-d43e3adc7572d34988967475900dcd4f9e0a7b89.zip |
Tighten up application of parallel mode checks.
Commit 924bcf4f16d54c55310b28f77686608684734f42 failed to enforce
parallel mode checks during the commit of a parallel worker, because
we exited parallel mode prior to ending the transaction so that we
could pop the active snapshot. Re-establish parallel mode during
parallel worker commit. Without this, it's far too easy for unsafe
actions during the pre-commit sequence to crash the server instead of
hitting the error checks as intended.
Just to be extra paranoid, adjust a couple of the sanity checks in
xact.c to check not only IsInParallelMode() but also
IsParallelWorker().
Diffstat (limited to 'src/include/regex/regex.h')
0 files changed, 0 insertions, 0 deletions