-- https://st.yandex-team.ru/NMAPS-12061
-- 
-- btree_gist postgresql extension is necessary:
-- https://postgrespro.ru/docs/postgrespro/9.5/btree-gist

CREATE INDEX IF NOT EXISTS feedback_task_outgoing_closed_created_at_position_idx
    ON social.feedback_task_outgoing_closed
    USING gist (created_at, position)
    WITH (buffering='on');
