-- 213_md_status_pending_idx.sql
-- Phase 1A: 큐 폴링용 partial index (pending/processing 만).

CREATE INDEX IF NOT EXISTS idx_documents_md_status_pending
    ON documents (md_status)
    WHERE md_status IN ('pending', 'processing');
