3 ms·
Thank you! Thank you so much :)
by 120bits 7y ago
Thank you! Thank you so much :)
- porsager 7y agoYou're welcome. To ensure you're not sending alerts twice either select and update in a transaction or use a CTE like: with alert as ( select alert_id from alerts where alert_sent_at is null ) update alerts set alert_sent_at = now() from alert returning *