Creating an index on a timestamp with time zone cast to a date-- possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Seems you can't do this:

create index on someschema.sometable ((modified_at::date));

If modified_at is a timestamp with a time zone:

ERROR:  functions in index _expression_ must be marked IMMUTABLE

But you can if it's a timestamp without a time zone. Anyway, any way of casting that as to use it as an index?

--

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux