Add comment explaining fire_triggers=false in ri_PerformCheck() The reason for passing fire_triggers=false to SPI_execute_snapshot() in ri_PerformCheck() was not documented, making it unclear why it was done that way. Add a comment explaining that it ensures AFTER triggers on rows modified by the RI action are queued in the outer query's after-trigger context and fire only after all RI updates on the same row are complete.
Author: Yugo Nagata <[email protected]> Reviewed-by: Kirill Reshke <[email protected]> Reviewed-by: Surya Poondla <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/1ad7191f7e927ecda72928a9f1e69d40edfed3e4 Modified Files -------------- src/backend/utils/adt/ri_triggers.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
