Searching on expression indexes
问题 Searching on expression indexes I'm building an expression index that substrings a source field to avoid overflowing the 2172 character limit on B-trees: CREATE INDEX record_changes_log_detail_old_value_ix_btree ON record_changes_log_detail USING btree ((substring(old_value,1,1024)::text) text_pattern_ops); For the record: -- Postgres 11.4 on RDS, 11.5 on macOS at home. -- The record_changes_log_detail table has about 8M in my test setup. -- The old_value field is of type citext. -- Values in