The correct way to convert interval into seconds is to use "EXTRACT(EPOCH FROM ...)". The "SECOND" gives only the value of the second field. issue9126 review297181005
It is simpler and closer to standard SQL. issue8910 review288701002
issue7406 review45461002