I am working on a Rails app, that stores data in a Postgresql 9.4 database, the products table has a column images which is an array, I'd like to get the products that have no images, i.e. array_length(images) = 0. Is it possible to create an index on this condition? i.e on the length of the array.
images? Is it a BLOB?array, it's a Postgresql non standard type, it just contains the urls of the images. not the images themselves.