Hi,
I find there is a duplicate function call on timestamp2tm in timestamptz_part and timestamp_part.Is that necessary? I remove the latter one and it also works.
Best,Japin.