Range minus multirange
multirange_minus_multi subtracts one multirange from another. Subtract the covered shifts from each team's overall span.
task
Per team, list the uncovered periods between its first and last shift as team_id and gap, ordered.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
multirange_minus_multi subtracts one multirange from another. Subtract the covered shifts from each team's overall span.
Per team, list the uncovered periods between its first and last shift as team_id and gap, ordered.