Finding gaps in huge event streams? Finding gaps in huge event streams? postgresql postgresql