Error after second read from CTE or TEMPORARY TABLE in Postgres – Postgresql
I am trying to write a query where I select records by some condition, update one column of those records and then return them, all in one transaction. I have tried two options. First with CTE: BEGIN; WITH unwatched_rows AS…