I see, missed it Cause this works create index fooidx on cfg_files_data (show_id, file_id, lower(file_data_record ->> 'Company')); The idea is that I would like to avoid having an index for each key possibly wanted to search, but rather say have the whole record then search by the key and get the key value, thus having one index serving multiple purposes so to speak I looked at JSQuery but does not seem that I can have a composite index like fooidx ???!
Thanks Armand |