pgsql: doc: Add type information for postgres_fdw parameters.

2021-06-30 Thread Fujii Masao
doc: Add type information for postgres_fdw parameters. Author: Shinya Kato Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/tyapr01mb2896deb25c3b0d57f6139768c4...@tyapr01mb2896.jpnprd01.prod.outlook.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/61d599

pgsql: doc: Improve descriptions of tup_returned and tup_fetched in pg_

2021-06-30 Thread Fujii Masao
doc: Improve descriptions of tup_returned and tup_fetched in pg_stat_database Previously the descriptions of tup_returned and tup_fetched columns in pg_stat_database view were confusing. This commit improves them so that they represent the following formulas of those columns more accurately. * pg

pgsql: Fix portability fallout from commit dc227eb82.

2021-06-30 Thread Tom Lane
Fix portability fallout from commit dc227eb82. Give up on trying to mechanically forbid abort() within libpq. Even though there are no such calls in the source code, we've now seen three different scenarios where build toolchains silently insert such calls: gcc does it for profiling, some platform

pgsql: Improve various places that double the size of a buffer

2021-06-30 Thread David Rowley
Improve various places that double the size of a buffer Several places were performing a tight loop to determine the first power of 2 number that's > or >= the required memory. Instead of using a loop for that, we can use pg_nextpower2_32 or pg_nextpower2_64. When we need a power of 2 number equ