-- 035_drop_duplicate_indexes.sql
-- Purpose: cleanup of redundant indexes identified in 2026-05-24 schema audit.
-- Dependencies: 028 (listing_sources_listing_idx), 050 (listing_sources_listing_idx2, houses_geom_idx2), 009 (houses_geom_idx).
-- Deploy order: any time after 050.
--
-- Redundancy details:
--   * listing_sources_listing_idx2 (050) — exact duplicate of listing_sources_listing_idx (028).
--   * houses_geom_idx2 (050) — near-duplicate of houses_geom_idx (009); both are GIST on geom (full, non-partial).
--     The (050) variant adds no filter, so it's strictly redundant.
--
-- Keep: listing_sources_listing_idx (028), houses_geom_idx (009).
--
-- Idempotent: DROP INDEX IF EXISTS.

BEGIN;

DROP INDEX IF EXISTS listing_sources_listing_idx2;
DROP INDEX IF EXISTS houses_geom_idx2;

COMMIT;
