mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Add DROP INDEX CONCURRENTLY [IF EXISTS], uses ShareUpdateExclusiveLock
This commit is contained in:
6
src/backend/utils/cache/relcache.c
vendored
6
src/backend/utils/cache/relcache.c
vendored
@ -3355,6 +3355,12 @@ RelationGetIndexList(Relation relation)
|
||||
oidvector *indclass;
|
||||
bool isnull;
|
||||
|
||||
/*
|
||||
* Ignore any indexes that are currently being dropped
|
||||
*/
|
||||
if (!index->indisvalid && !index->indisready)
|
||||
continue;
|
||||
|
||||
/* Add index's OID to result list in the proper order */
|
||||
result = insert_ordered_oid(result, index->indexrelid);
|
||||
|
||||
|
Reference in New Issue
Block a user