Why does dropping an index take longer than creating it?
问题 In postgresql, I added an index to a large table, and it took about 1 second (which, frankly, surprised me). When I went to drop the index, I let it run for >200 seconds without it returning, and finally cancelled the drop operation. CREATE INDEX idx_cservicelocationdivisionstatus_inversed ON cservicelocationdivisionstatus (cservicelocationdivisionid, startdate, enddate DESC); Takes very little time, but DROP INDEX idx_cservicelocationdivisionstatus_inversed; Took so long that I gave up and