I have to update a timestamp in my database, but I want to change only the time, keeping the once registered date, for example, in '2021-10-07 11:00:00' I want to update it to '2021-10-07 10:00:00', how can I accomplish that?
the query I tried to run:
update p_bab.registro_ponto
set data_hora = timestamp::'10:00:00'
where id = 50;