pgsql: Don't use pgbench -j in tests

2023-12-04 Thread Alvaro Herrera
Don't use pgbench -j in tests It draws an unnecessary error in builds compiled without thread support. Added by commit 038f586d5f1d, which was backpatched to 14; though in branch master we no longer support such builds, there's no reason to have this there, so remove it in all branches since 14.

pgsql: Don't use pgbench -j in tests

2023-12-04 Thread Alvaro Herrera
Don't use pgbench -j in tests It draws an unnecessary error in builds compiled without thread support. Added by commit 038f586d5f1d, which was backpatched to 14; though in branch master we no longer support such builds, there's no reason to have this there, so remove it in all branches since 14.

pgsql: Don't use pgbench -j in tests

2023-12-04 Thread Alvaro Herrera
Don't use pgbench -j in tests It draws an unnecessary error in builds compiled without thread support. Added by commit 038f586d5f1d, which was backpatched to 14; though in branch master we no longer support such builds, there's no reason to have this there, so remove it in all branches since 14.

pgsql: Don't use pgbench -j in tests

2023-12-04 Thread Alvaro Herrera
Don't use pgbench -j in tests It draws an unnecessary error in builds compiled without thread support. Added by commit 038f586d5f1d, which was backpatched to 14; though in branch master we no longer support such builds, there's no reason to have this there, so remove it in all branches since 14.

pgsql: Remove now-unnecessary Autovacuum[Launcher|Worker]IAm functions

2023-12-04 Thread Heikki Linnakangas
Remove now-unnecessary Autovacuum[Launcher|Worker]IAm functions After commit fd5e8b440d, InitProcess() is called later in the EXEC_BACKEND startup sequence, so it's enough to set the am_autovacuum_[launcher|worker] variables at the same place as in the !EXEC_BACKEND case. Branch -- master De

pgsql: Teach convert() and friends to avoid copying when possible.

2023-12-04 Thread Nathan Bossart
Teach convert() and friends to avoid copying when possible. Presently, pg_convert() allocates a new bytea and copies the result regardless of whether any conversion actually happened. This commit adjusts this function to return the source pointer as-is if no conversion occurred. This optimizatio

pgsql: Optimize SearchPathCache by saving the last entry.

2023-12-04 Thread Jeff Davis
Optimize SearchPathCache by saving the last entry. Repeated lookups are common, so it's worth it to check the last entry before doing another hash lookup. Discussion: https://postgr.es/m/04c8592dbd694e4114a3ed87139a7a04e4363030.camel%40j-davis.com Branch -- master Details --- https://g

pgsql: Fix a random failure in 003_logical_slots.pl.

2023-12-04 Thread Amit Kapila
Fix a random failure in 003_logical_slots.pl. The failed test was trying to validate that the two_phase option for a slot is retained after the upgrade. The problem was that it didn't get enabled before the upgrade so expecting to be enabled after the upgrade was not right in the first place. This