aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonpath.c
diff options
context:
space:
mode:
authorMasahiko Sawada <msawada@postgresql.org>2023-07-25 15:09:31 +0900
committerMasahiko Sawada <msawada@postgresql.org>2023-07-25 15:09:31 +0900
commit35c85c3c9b90eb70937c8f409d2e7615b2bdb538 (patch)
tree8b4977a1f0f3fa08eb4df6c1ad4d134b0f172160 /src/backend/utils/adt/jsonpath.c
parentad486b0eaef4b2fcb7c672fcbf5c2f31eb99ac83 (diff)
downloadpostgresql-35c85c3c9b90eb70937c8f409d2e7615b2bdb538.tar.gz
postgresql-35c85c3c9b90eb70937c8f409d2e7615b2bdb538.zip
Remove unnecessary checks for indexes for REPLICA IDENTITY FULL tables.
Previously, when selecting an usable index for update/delete for the REPLICA IDENTITY FULL table, in IsIndexOnlyExpression(), we used to check if all index fields are not expressions. However, it was not necessary, because it is enough to check if only the leftmost index field is not an expression (and references the remote table column) and this check has already been done by RemoteRelContainsLeftMostColumnOnIdx(). This commit removes IsIndexOnlyExpression() and RemoteRelContainsLeftMostColumnOnIdx() and all checks for usable indexes for REPLICA IDENTITY FULL tables are now performed by IsIndexUsableForReplicaIdentityFull(). Backpatch this to remain the code consistent. Reported-by: Peter Smith Reviewed-by: Amit Kapila, Önder Kalacı Discussion: https://postgr.es/m/CAHut%2BPsGRE5WSsY0jcLHJEoA17MrbP9yy8FxdjC_ZOAACxbt%2BQ%40mail.gmail.com Backpatch-through: 16
Diffstat (limited to 'src/backend/utils/adt/jsonpath.c')
0 files changed, 0 insertions, 0 deletions