You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Make the conditions in IsIndexUsableForReplicaIdentityFull() more explicit
IsIndexUsableForReplicaIdentityFull() described a number of conditionsthat a suitable index has to fulfill. But not all of these wereactually checked in the code. Instead, it appeared to rely onget_equal_strategy_number() to filter out any indexes that are notbtree or hash. As we look to generalize index AM capabilities, thiswould possibly break if we added additional support inget_equal_strategy_number(). Instead, write out code to check for therequired capabilities explicitly. This shouldn't change any behaviorsat the moment.Reviewed-by: Paul Jungwirth <pj@illuminatedcomputing.com>Reviewed-by: vignesh C <vignesh21@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/CA+renyUApHgSZF9-nd-a0+OPGharLQLO=mDHcY4_qQ0+noCUVg@mail.gmail.com