Можете да опитате с частичен индекс:
CREATE INDEX idx_partial ON othertable (m_id)
WHERE (col1 is not null and col2 is not null and col3 is not null);
От документите:http://www.postgresql.org/docs /current/interactive/indexes-partial.html
Можете да опитате с частичен индекс:
CREATE INDEX idx_partial ON othertable (m_id)
WHERE (col1 is not null and col2 is not null and col3 is not null);
От документите:http://www.postgresql.org/docs /current/interactive/indexes-partial.html