Calabaza Calabaza escribió:
> Prueba esto:
>
> Select ((now()::timestamp)-('2008-01-01 15:34:0'::timestamp))::interval
Mas facil:
select age('2008-01-01 15:34'::timestamptz);
o si tienes el timestamptz en una tabla, no necesitas el cast:
select age(columna) from tabla where ...
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support