sgn
sgn copied to clipboard
Prevent materialized view refreshes from clobbering each other
Expected Behavior
Instead of using the 'currently_refreshing' column in the matviews table before issuing a new refresh, check if one is running via pg_stat_activity. If one is and it is of the same type, terminate it and then issue a new refresh.
For Bugs:
Environment
Steps to Reproduce
partially completed here, need to test and finish https://github.com/solgenomics/sgn/tree/topic/fix_clobbering_matview_refresh
what is the status of this ticket? I think it can probably be closed?
We should probably close this ticket at this point if it is not considered a problem anymore...?