| From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: nbtree: Rename nbtinsert.c variables for consistency. |
| Date: | 2020-11-17 17:02:19 |
| Message-ID: | E1kf4N1-0004su-TO@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
nbtree: Rename nbtinsert.c variables for consistency.
Stop naming special area/opaque pointer variables 'lpageop' in contexts
where it doesn't make sense. This is a holdover from a time when logic
that performs tasks that are now spread across _bt_insertonpg(),
_bt_findinsertloc(), and _bt_split() was more centralized. 'lpageop'
denotes "left page", which doesn't make sense outside of contexts in
which there isn't also a right page.
Also acquire page flag variables up front within _bt_insertonpg(). This
makes it closer to _bt_split() following refactoring commit bc3087b626d.
This allows the page split and retail insert paths to both make use of
the same variables.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a034f8b60c6e9afd75f42dc420a76cb9d3875fcb
Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 121 +++++++++++++++++-----------------
1 file changed, 62 insertions(+), 59 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2020-11-17 17:23:45 | pgsql: indexcmds.c: reorder function prototypes |
| Previous Message | Amit Kapila | 2020-11-17 06:45:24 | pgsql: Fix 'skip-empty-xacts' option in test_decoding for streaming mod |