Generalize parallel slot result handling.
Robert Haas <rhaas@postgresql.org>
Generalize parallel slot result handling. Instead of having a hard-coded behavior that we ignore missing tables and report all other errors, let the caller decide what to do by setting a callback. Mark Dilger, reviewed and somewhat revised by me. The larger patch series of which this is a part has also had review from Peter Geoghegan, Andres Freund, Álvaro Herrera, Michael Paquier, and Amul Sul, but I don't know whether any of them have reviewed this bit specifically. Discussion: http://postgr.es/m/12ED3DA8-25F0-4B68-937D-D907CFBF08E7@enterprisedb.com Discussion: http://postgr.es/m/5F743835-3399-419C-8324-2D424237E999@enterprisedb.com Discussion: http://postgr.es/m/70655DF3-33CE-4527-9A4D-DDEB582B6BA0@enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/scripts/reindexdb.c | modified | +1 −0 |
| src/bin/scripts/vacuumdb.c | modified | +1 −0 |
| src/fe_utils/parallel_slot.c | modified | +63 −28 |
| src/include/fe_utils/parallel_slot.h | modified | +29 −0 |
Discussion
- new heapcheck contrib module 220 messages · 2020-04-20 → 2021-03-02