Answer the question
In order to leave comments, you need to log in
How to make sure that INSERT is executed on the result of SELECT atomically?
It is necessary to perform an INSERT if the result of the SELECT is empty. The SELECT checks for the intersection of the date period with the existing periods of the table, so it will not be possible to set a unique key.
How to make the operation pass atomically so that several processes at the same time cannot add intersecting periods?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question