Is there a way in postgres db. to have expression inside interval type ? , e.g. I can execute a query -
select (timestamp '1970-01-01 00:00:00' + interval '1 second' * J0.C3) from T637 J0
Now , I need to be able to manipulate value of '1 second' dynamically , meaning '(1+2) seconds' fails for postgres , along with that the "value portion" value if it is getting derived via a function , and output of that function is some integer , I can't use that function in interval , e.g. interval func(args) seconds, how to achieve such dynamic "value portion" for "interval" in postgres db ?