aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2023-08-22 08:44:09 +0530
committerAmit Kapila <akapila@postgresql.org>2023-08-22 08:50:44 +0530
commit1cdc6d86bfc3bbe2189a4d9d54a4fa8b6c98ea0a (patch)
treecfe19dedbf0e6578208894afb9a4f45d7d796e27 /src/backend/access/spgist
parent6fde2d9a005a5bc04aa059d3faeb865c8dd322ce (diff)
downloadpostgresql-1cdc6d86bfc3bbe2189a4d9d54a4fa8b6c98ea0a.tar.gz
postgresql-1cdc6d86bfc3bbe2189a4d9d54a4fa8b6c98ea0a.zip
Simplify the logical worker type checks by using the switch on worker type.
The current code uses if/else statements at various places to take worker specific actions. Change those to use the switch on worker type added by commit 2a8b40e368. This makes code easier to read and understand. Author: Peter Smith Reviewed-by: Amit Kapila, Hou Zhijie Discussion: http://postgr.es/m/CAHut+PttPSuP0yoZ=9zLDXKqTJ=d0bhxwKaEaNcaym1XqcvDEg@mail.gmail.com
Diffstat (limited to 'src/backend/access/spgist')
0 files changed, 0 insertions, 0 deletions