Ryan Bradetich <ryan_bradetich(at)hp(dot)com> writes:> Does anyone know how to extract a datetime field as a time_t?
date_part('epoch', ...);
Not exactly the first thing you'd think to try, but it works.
regards, tom lane