Re-think guts of DROP INDEX CONCURRENTLY. Concurrent behaviour was flawed when using a two-step process, so add an additional phase of processing to ensure concurrency for both SELECTs and INSERT/UPDATE/DELETEs.
Re-think guts of DROP INDEX CONCURRENTLY.
Concurrent behaviour was flawed when using
a two-step process, so add an additional
phase of processing to ensure concurrency
for both SELECTs and INSERT/UPDATE/DELETEs.

Backpatch to 9.2

Andres Freund, tweaked by me

arcivanov/postgres-xl,snaga/postgres-xl,arcivanov/postgres-xl,postmind-net/postgres-xl,arcivanov/postgres-xl,arcivanov/postgres-xl,postmind-net/postgres-xl,snaga/postgres-xl,snaga/postgres-xl,snaga/postgres-xl,kmjungersen/PostgresXL,snaga/postgres-xl,kmjungersen/PostgresXL,kmjungersen/PostgresXL,postmind-net/postgres-xl,kmjungersen/PostgresXL,kmjungersen/PostgresXL,arcivanov/postgres-xl,postmind-net/postgres-xl,postmind-net/postgres-xl,arcivanov/postgres-xl