Re: pgsql: Preallocate some DSM space at startup.

2020-07-30 Thread Michael Paquier
Hi Thomas, On Fri, Jul 31, 2020 at 05:54:45AM +, Thomas Munro wrote: > Preallocate some DSM space at startup. > > Create an optional region in the main shared memory segment that can be > used to acquire and release "fast" DSM segments, and can benefit from > huge pages allocated at cluster s

pgsql: Preallocate some DSM space at startup.

2020-07-30 Thread Thomas Munro
Preallocate some DSM space at startup. Create an optional region in the main shared memory segment that can be used to acquire and release "fast" DSM segments, and can benefit from huge pages allocated at cluster startup time, if configured. Fall back to the existing mechanisms when that space is

pgsql: Fix comment in instrument.h

2020-07-30 Thread Michael Paquier
Fix comment in instrument.h local_blks_dirtied tracks the number of local blocks dirtied, not shared ones. Author: Kirk Jamison Discussion: https://postgr.es/m/osbpr01mb2341760686dc056de89d2ab9ef...@osbpr01mb2341.jpnprd01.prod.outlook.com Branch -- master Details --- https://git.postgr

pgsql: Cache smgrnblocks() results in recovery.

2020-07-30 Thread Thomas Munro
Cache smgrnblocks() results in recovery. Avoid repeatedly calling lseek(SEEK_END) during recovery by caching the size of each fork. For now, we can't use the same technique in other processes, because we lack a shared invalidation mechanism. Do this by generalizing the pre-existing caching used

pgsql: Use multi-inserts for pg_attribute and pg_shdepend

2020-07-30 Thread Michael Paquier
Use multi-inserts for pg_attribute and pg_shdepend For pg_attribute, this allows to insert at once a full set of attributes for a relation (roughly 15% of WAL reduction in extreme cases). For pg_shdepend, this reduces the work done when creating new shared dependencies from a database template.

pgsql: Doc: fix high availability solutions comparison.

2020-07-30 Thread Tatsuo Ishii
Doc: fix high availability solutions comparison. In "High Availability, Load Balancing, and Replication" chapter, certain descriptions of Pgpool-II were not correct at this point. It does not need conflict resolution. Also "Multiple-Server Parallel Query Execution" is not supported anymore. Disc

pgsql: Doc: fix high availability solutions comparison.

2020-07-30 Thread Tatsuo Ishii
Doc: fix high availability solutions comparison. In "High Availability, Load Balancing, and Replication" chapter, certain descriptions of Pgpool-II were not correct at this point. It does not need conflict resolution. Also "Multiple-Server Parallel Query Execution" is not supported anymore. Disc

pgsql: Doc: fix high availability solutions comparison.

2020-07-30 Thread Tatsuo Ishii
Doc: fix high availability solutions comparison. In "High Availability, Load Balancing, and Replication" chapter, certain descriptions of Pgpool-II were not correct at this point. It does not need conflict resolution. Also "Multiple-Server Parallel Query Execution" is not supported anymore. Disc

pgsql: Doc: fix high availability solutions comparison.

2020-07-30 Thread Tatsuo Ishii
Doc: fix high availability solutions comparison. In "High Availability, Load Balancing, and Replication" chapter, certain descriptions of Pgpool-II were not correct at this point. It does not need conflict resolution. Also "Multiple-Server Parallel Query Execution" is not supported anymore. Disc

pgsql: Doc: fix high availability solutions comparison.

2020-07-30 Thread Tatsuo Ishii
Doc: fix high availability solutions comparison. In "High Availability, Load Balancing, and Replication" chapter, certain descriptions of Pgpool-II were not correct at this point. It does not need conflict resolution. Also "Multiple-Server Parallel Query Execution" is not supported anymore. Disc

pgsql: Doc: fix high availability solutions comparison.

2020-07-30 Thread Tatsuo Ishii
Doc: fix high availability solutions comparison. In "High Availability, Load Balancing, and Replication" chapter, certain descriptions of Pgpool-II were not correct at this point. It does not need conflict resolution. Also "Multiple-Server Parallel Query Execution" is not supported anymore. Disc

pgsql: Doc: fix high availability solutions comparison.

2020-07-30 Thread Tatsuo Ishii
Doc: fix high availability solutions comparison. In "High Availability, Load Balancing, and Replication" chapter, certain descriptions of Pgpool-II were not correct at this point. It does not need conflict resolution. Also "Multiple-Server Parallel Query Execution" is not supported anymore. Disc

pgsql: Use pg_bitutils for HyperLogLog.

2020-07-30 Thread Jeff Davis
Use pg_bitutils for HyperLogLog. Using pg_leftmost_one_post32() yields substantial performance benefits. Backpatching to version 13 because HLL is used for HashAgg improvements in 9878b643, which was also backpatched to 13. Reviewed-by: Peter Geoghegan Discussion: https://postgr.es/m/CAH2-WzkGv

pgsql: Use pg_bitutils for HyperLogLog.

2020-07-30 Thread Jeff Davis
Use pg_bitutils for HyperLogLog. Using pg_leftmost_one_post32() yields substantial performance benefits. Backpatching to version 13 because HLL is used for HashAgg improvements in 9878b643, which was also backpatched to 13. Reviewed-by: Peter Geoghegan Discussion: https://postgr.es/m/CAH2-WzkGv

pgsql: Include partitioned tables for tab completion of VACUUM in psql

2020-07-30 Thread Michael Paquier
Include partitioned tables for tab completion of VACUUM in psql The relkinds that support indexing are the same as the ones supporting VACUUM, so the code gets refactored a bit with the completion query used for CLUSTER, but there is no change for CLUSTER in this commit. Author: Justin Pryzby Rev