Re: Creste Index with nullable

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

 



Diego <diego@xxxxxxxxxxxxxxxxx> writes:
> I can create a index like
> "CREATE INDEX idx_test  ON etqmov  USING btree  (name, last_name)"
> using a nullable field? Will work fine?

Sure.  Note however that "last_name IS NULL" is not an indexable
operation, so you won't be able to use the index to search for rows
containing nulls.  This may or may not matter to you, but if it does
you'll need to think of another way to locate those rows.  (Some people
solve this sort of problem with partial indexes.)

			regards, tom lane


[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