pgsql: Fix incorrect range in pg_regress comment.

2025-02-02 Thread Tom Lane
Fix incorrect range in pg_regress comment. A comment in pg_regress incorrectly stated that alternative output files could be named test_{i}.out with 0 < i <= 9. However, the valid range is actually 0 <= i <= 9. (The user-facing docs have this right already.) Author: Ilia Evdokimov Discussion: h

pgsql: Improve comment on top of pgstat_count_io_op_time()

2025-02-02 Thread Michael Paquier
Improve comment on top of pgstat_count_io_op_time() This commit adds more documentation to pgstat_count_io_op_time() in pgstat_io.c, explaining its internals for pgstat_count_buffer_*(), pgBufferUsage and the contexts where these are used. Extracted from a larger patch by the same author. Author

pgsql: Fix typo in xlog.c

2025-02-02 Thread Michael Paquier
Fix typo in xlog.c "recovery" is not a verb. Introduced in 68cb5af46cd8. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/fcce828529ee36ac452aead60fe95648bde3256c Modified Files -- src/backend/access/transam/xlog.c | 2 +- 1 file changed, 1 insertion(+),

pgsql: Convert strategies to and from compare types

2025-02-02 Thread Peter Eisentraut
Convert strategies to and from compare types For each Index AM, provide a mapping between operator strategies and the system-wide generic concept of a comparison type. For example, for btree, BTLessStrategyNumber maps to and from COMPARE_LT. Numerous places in the planner and executor think dire