pgsql: Doc: improve documentation about random().

2022-07-23 Thread Tom Lane
Doc: improve documentation about random(). We didn't explicitly say that random() uses a randomly-chosen seed if you haven't called setseed(). Do so. Also, remove ref/set.sgml's no-longer-accurate (and never very relevant) statement that the seed value is multiplied by 2^31-1. Back-patch to v12

pgsql: Doc: improve documentation about random().

2022-07-23 Thread Tom Lane
Doc: improve documentation about random(). We didn't explicitly say that random() uses a randomly-chosen seed if you haven't called setseed(). Do so. Also, remove ref/set.sgml's no-longer-accurate (and never very relevant) statement that the seed value is multiplied by 2^31-1. Back-patch to v12

pgsql: Doc: improve documentation about random().

2022-07-23 Thread Tom Lane
Doc: improve documentation about random(). We didn't explicitly say that random() uses a randomly-chosen seed if you haven't called setseed(). Do so. Also, remove ref/set.sgml's no-longer-accurate (and never very relevant) statement that the seed value is multiplied by 2^31-1. Back-patch to v12

pgsql: Doc: improve documentation about random().

2022-07-23 Thread Tom Lane
Doc: improve documentation about random(). We didn't explicitly say that random() uses a randomly-chosen seed if you haven't called setseed(). Do so. Also, remove ref/set.sgml's no-longer-accurate (and never very relevant) statement that the seed value is multiplied by 2^31-1. Back-patch to v12

pgsql: Doc: improve documentation about random().

2022-07-23 Thread Tom Lane
Doc: improve documentation about random(). We didn't explicitly say that random() uses a randomly-chosen seed if you haven't called setseed(). Do so. Also, remove ref/set.sgml's no-longer-accurate (and never very relevant) statement that the seed value is multiplied by 2^31-1. Back-patch to v12

pgsql: Remove dead getpwuid_r replacement code.

2022-07-23 Thread Thomas Munro
Remove dead getpwuid_r replacement code. getpwuid_r is in SUSv2 and all targeted Unix systems have it. We don't use it for Windows. Reviewed-by: Tom Lane Reviewed-by: Greg Stark Reviewed-by: Robert Haas Discussion: https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hgdem4qygeux5b...@mail.

pgsql: Remove dead handling for pre-POSIX sigwait().

2022-07-23 Thread Thomas Munro
Remove dead handling for pre-POSIX sigwait(). sigwait() is in SUSv2 and all targeted Unix systems have it. An earlier pre-standard function prototype existed on some older systems, but we no longer need a workaround for that. Reviewed-by: Tom Lane Reviewed-by: Greg Stark Reviewed-by: Robert Ha

pgsql: Remove dead getrusage replacement code.

2022-07-23 Thread Thomas Munro
Remove dead getrusage replacement code. getrusage() is in SUSv2 and all targeted Unix systems have it. Note that POSIX only covers ru_utime and ru_stime and we rely on many more fields without any kind of configure probe, but that predates this commit. The only supported system we need replaceme

pgsql: Doc: update recovery/README.

2022-07-23 Thread Tom Lane
Doc: update recovery/README. Commit e2f65f425 added contrib/pg_prewarm to the prerequisites for running the src/test/recovery suite, but did not bother to update the documentation about that. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/b431dc5c3d7207ffb56b6045eb

pgsql: Doc: update recovery/README.

2022-07-23 Thread Tom Lane
Doc: update recovery/README. Commit e2f65f425 added contrib/pg_prewarm to the prerequisites for running the src/test/recovery suite, but did not bother to update the documentation about that. Branch -- REL_15_STABLE Details --- https://git.postgresql.org/pg/commitdiff/44d0e41319f2379d610

pgsql: Increase minimum supported GNU make version to 3.81.

2022-07-23 Thread Tom Lane
Increase minimum supported GNU make version to 3.81. We've long held the minimum at 3.80, but that's required more than one workaround. Commit 0f39b70a6 broke it again, because it turns out that exporting a target-specific variable didn't work in 3.80. Considering that 3.81 is now old enough to g

pgsql: Increase minimum supported GNU make version to 3.81.

2022-07-23 Thread Tom Lane
Increase minimum supported GNU make version to 3.81. We've long held the minimum at 3.80, but that's required more than one workaround. Commit 0f39b70a6 broke it again, because it turns out that exporting a target-specific variable didn't work in 3.80. Considering that 3.81 is now old enough to g