git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f65ab86) | patch
Avoid repeating loads of frozen ID values.
2024年4月29日 17:25:33 +0000 (10:25 -0700)
2024年4月29日 17:25:33 +0000 (10:25 -0700)
commit dd0183469bb779247c96e86c2272dca7ff4ec9e7
Avoid repeating loads of frozen ID values.

Repeating loads of inplace-updated fields tends to cause bugs like the
one from the previous commit. While there's no bug to fix in these code
sites, adopt the load-once style. This improves the chance of future
copy/paste finding the safe style.

Discussion: https://postgr.es/m/20240423003956.e7.nmisch@google.com
src/backend/access/heap/heapam.c diff | blob | blame | history
src/backend/commands/cluster.c diff | blob | blame | history
src/backend/commands/vacuum.c diff | blob | blame | history
src/backend/postmaster/autovacuum.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /