aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/constraint.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-10-10 13:08:29 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-10-10 13:08:29 -0400
commit14661ba1a7a6b0f82b8451cbb51a5c2a11676635 (patch)
tree7910fdc78223de7f4a5b4c608c0d0395b3a33190 /src/backend/commands/constraint.c
parent98e89740e5a816f9ef2b71b1a1b62a9aff23d194 (diff)
downloadpostgresql-14661ba1a7a6b0f82b8451cbb51a5c2a11676635.tar.gz
postgresql-14661ba1a7a6b0f82b8451cbb51a5c2a11676635.zip
Replace has_multiple_baserels() with a bitmap test on all_baserels.
Since we added the PlannerInfo.all_baserels set, it's not really necessary to grovel over the rangetable to count baserels in the current query. So let's drop has_multiple_baserels() in favor of a bms_membership() test. This might be microscopically faster, but the main point is to remove some unnecessary code. Richard Guo Discussion: https://postgr.es/m/CAMbWs4_8RcSbbfs1ASZLrMuL0c0EQgXWcoLTQD8swBRY_pQQiA@mail.gmail.com
Diffstat (limited to 'src/backend/commands/constraint.c')
0 files changed, 0 insertions, 0 deletions