| От | Glenn Sullivan |
|---|---|
| Тема | Conditional Adding to a Table |
| Дата | |
| Msg-id | 3BC4B175.D0F3787D@varianinc.com обсуждение исходный текст |
| Ответы |
Re: Conditional Adding to a Table
|
| Список | pgsql-general |
Greetings, I need to check a table to see if an item already exist in the table. It if does not, then I want to add it. Unfortunately, multiple processes (Solaris system) can be running at the same time. Sometimes, one process checks to see if an item exist and it does not. At the same time another process checks to see if the same item exist and it does not. Then both, add the item to the table. This is, of course, not what I want. I cannot seem to figure out how to do a conditional test to do something like this. If I could, then the whole operation could fit in one transaction with locking. Any ideas? Thanks, Glenn
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера