Du kan prøve et delvist indeks:
CREATE INDEX idx_partial ON othertable (m_id)
WHERE (col1 is not null and col2 is not null and col3 is not null);
Fra dokumenterne:http://www.postgresql.org/docs /current/interactive/indexes-partial.html
Du kan prøve et delvist indeks:
CREATE INDEX idx_partial ON othertable (m_id)
WHERE (col1 is not null and col2 is not null and col3 is not null);
Fra dokumenterne:http://www.postgresql.org/docs /current/interactive/indexes-partial.html