mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Some RELKIND macro refactoring
Add more macros to group some RELKIND_* macros: - RELKIND_HAS_PARTITIONS() - RELKIND_HAS_TABLESPACE() - RELKIND_HAS_TABLE_AM() Reviewed-by: Michael Paquier <michael@paquier.xyz> Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://www.postgresql.org/message-id/flat/a574c8f1-9c84-93ad-a9e5-65233d6fc00f%40enterprisedb.com
This commit is contained in:
@@ -2293,7 +2293,7 @@ index_drop(Oid indexId, bool concurrent, bool concurrent_lock_mode)
|
||||
/*
|
||||
* Schedule physical removal of the files (if any)
|
||||
*/
|
||||
if (userIndexRelation->rd_rel->relkind != RELKIND_PARTITIONED_INDEX)
|
||||
if (RELKIND_HAS_STORAGE(userIndexRelation->rd_rel->relkind))
|
||||
RelationDropStorage(userIndexRelation);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user