report generation get_diffreport #36
|
report generation, what am I doing wrong, tell me please.... select get_diffreport(tstzrange(now() - interval '4 hours',now() - interval '2 hours', now() - interval '1 hours', now())); |
Replies: 4 comments
|
Hello! Building a differential report requires two time intervals. Function tstzrange() gets two timestamps as an interval bounds, it can't be called with four arguments. You could use something like this: |
|
and so it does not work, maybe this is due to the version (3.4)? |
|
Unfortunately get_diffreport() function in case of time range parameters have no default for server name. You have to specify a server name, which is 'local' if you did not change it. Try this: |
|
yes it works, thank you very much ;-) |
Hello!
Building a differential report requires two time intervals. Function tstzrange() gets two timestamps as an interval bounds, it can't be called with four arguments. You could use something like this: