Hi,
Are there guarantees about how this plpgsql behaves? It’s deleting from a table while it loops over it. So far it seems
likethe delete is logically after the select, as I hoped, and doesn’t interfere.
for row in select * from some_stuff loop
delete from some_stuff where …
...
end loop;
I’m using a temporary table of “things to process” and looping over it, deleting the ones as I go.
I don’t see anything mentioned here:
https://www.postgresql.org/docs/11/plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING
Rob
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера