Trying to update some dates programmatically on Citus I always get
[0A000] ERROR: STABLE functions used in UPDATE queries cannot be called with column references
From a query like
UPDATE date_container SET json_value = json_value::jsonb - 'created_time' || CONCAT('{"created_time":"',
rtrim(replace(to_timestamp(((json_value->>'created_time')::numeric/1000000))::text,' ','T'), '-05'),'"}')::jsonb
In theory all methods are immutable, but for some reasons it says that some part of it is not.
I tried also all methods below: PostgreSQL: how to convert from Unix epoch to date?
timestamp with time zonetotextthat happens because you use it as an argument toreplace.-supposed to do?, WHat is that attempt to concatenate the stringcreated_timewith ajsonb?created_timefield. To do so, from my understanding I have to remove it and insert it again through that code.