- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit4b426f7
committed
Hold interrupts while running dsm_detach() callbacks.
While cleaning up after a parallel query or parallel index creation thatcreated temporary files, we could be interrupted by a statement timeout.The error handling path would then fail to clean up the files when itran dsm_detach() again, because the callback was already popped off thelist. Prevent this hazard by holding interrupts while the cleanup coderuns.Thanks to Heikki Linnakangas for this suggestion, and also to KyotaroHoriguchi, Masahiko Sawada, Justin Pryzby and Tom Lane for discussion ofthis and earlier ideas on how to fix the problem.Back-patch to all supported releases.Reported-by: Justin Pryzby <pryzby@telsasoft.com>Discussion:https://postgr.es/m/20191212180506.GR2082@telsasoft.com1 parent02e7da0 commit4b426f7
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
720 | 720 |
| |
721 | 721 |
| |
722 | 722 |
| |
723 |
| - | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
724 | 727 |
| |
| 728 | + | |
725 | 729 |
| |
726 | 730 |
| |
727 | 731 |
| |
| |||
737 | 741 |
| |
738 | 742 |
| |
739 | 743 |
| |
| 744 | + | |
740 | 745 |
| |
741 | 746 |
| |
742 | 747 |
| |
|
0 commit comments
Comments
(0)