I've searched around for an answer to this, but the only reference I could find was an obscure forum post that suggested that operators, including % (modulo) were "sargable" (i.e. could use the index that the operator was operating on)
However, we have some situations where using a modulo to parallelise our processes seems to not use the index that the modulo is on, even on the primary key field. This may be that the optimiser decides that a table scan is cheaper anyway, but it's difficult to determine the reason for the shunning of the index.
Does anyone have a definitive answer, or share similar experiences?
Postgres / EDB v9.3
TIA .
edit e.g.
CREATE TABLE my_table(id bigint, othercolumn varchar(50), PRIMARY KEY(id))
...insert x million records into the table...
SELECT othercolumn from my_table where id % 1000 = 0