2008/11/1 Simeó Reig (Informes Incofisa) <simeo(dot)reig(at)incofisa(dot)com>:
> Hola listeros
[...]
> Hay alguna manera de eliminar la parte decimal de un campo time ? He
> intentado poner el siguiente default:
>
> horamodificacio time without time zone NOT NULL DEFAULT
> (split_part(("time"('now'::text))::text, '.'::text, 1))::time without time
> zone,
Y si pruebas con:
create table foo(hora time not null default (to_char(now()::time,
'HH12:MI:SS'))::time);