| От | Csaba Nagy |
|---|---|
| Тема | Re: Replaceing records |
| Дата | |
| Msg-id | 1062691810.6781.148.camel@coppola.ecircle.de обсуждение |
| Ответ на | Re: Replaceing records (Greg Stark <gsstark@mit.edu>) |
| Список | pgsql-general |
> You can do > INSERT INTO tab (...) VALUES (...) ON DUPLICATE KEY UPDATE col=val, ... This would allow making sure insert won't throw exceptions on unique constraint violations. Good enough to avoid breaking transactions. > > But I'm not sure how convinced the developers are of its usefulness beyond > satisfying mysql migrations. I've never used mysql and I have seen a few times > it might have been useful. Not a lot, but a few. And it seems to be a frequent > question on the mailing list. If nested transactions is easier to implement, that would be better. Covers more of the current problems. Cheers, Csaba.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера