pgsql: Fix typos and grammar in code comments

2021-09-26 Thread Michael Paquier
Fix typos and grammar in code comments Several mistakes have piled in the code comments over the time, including incorrect grammar, function names and simple typos. This commit takes care of a portion of these. No backpatch is done as this is only cosmetic. Author: Justin Pryzby Discussion: htt

pgsql: Remove unneeded nbtree latestRemovedXid comments.

2021-09-26 Thread Peter Geoghegan
Remove unneeded nbtree latestRemovedXid comments. Discussing the low level issue of nbtree VACUUM and recovery conflicts in btvacuumpage() now seems inappropriate. The same issue is discussed in nbtxlog.h, as well as in a comment block above _bt_delitems_vacuum(). The comment block made more sen

pgsql: Track LLVM 14 API changes.

2021-09-26 Thread Thomas Munro
Track LLVM 14 API changes. Only done on the master branch for now to fix build farm animal seawasp (which tests bleeeding edge PostgreSQL with bleeding edge LLVM). We can back-patch a consolidated fix closer to LLVM 14's release, once its API has stopped moving around. Discussion: https://postg

pgsql: Avoid unnecessary division in interval_cmp_value().

2021-09-26 Thread Tom Lane
Avoid unnecessary division in interval_cmp_value(). Splitting the time field into days and microseconds is pretty useless when we're just going to recombine those values. It's unclear if anyone will notice the speedup in real-world cases, but a cycle shaved is a cycle earned. Discussion: https://

pgsql: Fix typos in docs

2021-09-26 Thread Michael Paquier
Fix typos in docs Author: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.6 Branch -- REL_11_STABLE Details --- https://git.postgresql.org/pg/commitdiff/23e83c35ad32ec17a38794f6be8289094f8d51fe Modified Files -- doc/src/s

pgsql: Fix typos in docs

2021-09-26 Thread Michael Paquier
Fix typos in docs Author: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.6 Branch -- REL_12_STABLE Details --- https://git.postgresql.org/pg/commitdiff/b7647c4260c444142b7231a9bf3d313fc2d74dbc Modified Files -- doc/src/s

pgsql: Fix typos in docs

2021-09-26 Thread Michael Paquier
Fix typos in docs Author: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.6 Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/7c1d8a243f8bd46604c9b292f392aab170eed821 Modified Files -- doc/src/sgml/dat

pgsql: Fix typos in docs

2021-09-26 Thread Michael Paquier
Fix typos in docs Author: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.6 Branch -- REL_10_STABLE Details --- https://git.postgresql.org/pg/commitdiff/2ddf1c1be6c87ece5428ce94c2ca86bb1ffe0dc0 Modified Files -- doc/src/s

pgsql: Fix typos in docs

2021-09-26 Thread Michael Paquier
Fix typos in docs Author: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.6 Branch -- REL_13_STABLE Details --- https://git.postgresql.org/pg/commitdiff/78515b89f2985ef78136732cd239609c569797b3 Modified Files -- doc/src/s

pgsql: Fix typos in docs

2021-09-26 Thread Michael Paquier
Fix typos in docs Author: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.6 Branch -- REL_14_STABLE Details --- https://git.postgresql.org/pg/commitdiff/e8b39cebdaf042dfeeb31d2f48f0fe7b33886210 Modified Files -- doc/src/s

pgsql: Fix typos in docs

2021-09-26 Thread Michael Paquier
Fix typos in docs Author: Justin Pryzby Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.6 Branch -- REL9_6_STABLE Details --- https://git.postgresql.org/pg/commitdiff/55367378d785fba20471b8bbe7f9b3af20bcc77d Modified Files -- doc/src/s