I run a simple update query on a table:
UPDATE table_x SET col_a = (col_b AT TIME ZONE 'UTC') AT TIME ZONE col_tz;
When table_x consists of 100 entries, the query takes some milliseconds.
-> 100'000 entries = 2 seconds.
-> 1'000'000 entries = 20 seconds.
So far so good. But when the table consists of 20M entries, the query runs forever! Does anybody know the reason for this? And what can be done to overcome this?
Maybe I should add that I have only around 13 GB free disk space on my computer.