Postgres multi-column index (integer, boolean, and array)
问题 I have a Postgres 9.4 database with a table like this: | id | other_id | current | dn_ids | rank | |----|----------|---------|---------------------------------------|------| | 1 | 5 | F | {123,234,345,456,111,222,333,444,555} | 1 | | 2 | 7 | F | {123,100,200,900,800,700,600,400,323} | 2 | (update) I already have a couple indexes defined. Here is the CREATE TABLE syntax: CREATE TABLE mytable ( id integer NOT NULL, other_id integer, rank integer, current boolean DEFAULT false, dn_ids integer[]