Peter Nixon <listuser(at)peternixon(dot)net> writes:
> I am trying to cast a INTERVAL to an INT (or BIGINT) without much success.
"extract(epoch from <interval>)" will produce the interval's value in
seconds ... as a float8, but you can cast that to bigint ...
regards, tom lane