pgsql: Avoid trying to release a List's initial allocation via repalloc

2019-10-06 Thread Tom Lane
Avoid trying to release a List's initial allocation via repalloc(). Commit 1cff1b95a included some code that supposed it could repalloc() a memory chunk to a smaller size without risk of the chunk moving. That was not a great idea, because it depended on undocumented behavior of AllocSetRealloc, w

pgsql: Doc: improve docs about pg_statistic_ext_data.

2019-10-06 Thread Tom Lane
Doc: improve docs about pg_statistic_ext_data. Commit aa087ec64 was a bit over-hasty about the doc changes needed while splitting pg_statistic_ext_data off from pg_statistic_ext. It duplicated one para and inserted another in what seems to me to be the wrong section. Fix that up, and in passing d

pgsql: Doc: improve docs about pg_statistic_ext_data.

2019-10-06 Thread Tom Lane
Doc: improve docs about pg_statistic_ext_data. Commit aa087ec64 was a bit over-hasty about the doc changes needed while splitting pg_statistic_ext_data off from pg_statistic_ext. It duplicated one para and inserted another in what seems to me to be the wrong section. Fix that up, and in passing d

pgsql: Improve handling and coverage of --no-ensure-shutdown in pg_rewi

2019-10-06 Thread Michael Paquier
Improve handling and coverage of --no-ensure-shutdown in pg_rewind This includes a couple of changes around the new behavior of pg_rewind which enforces recovery to happen once on a cluster not shut down cleanly: - Some comments and documentation improvements. - Shutdown the cluster to rewind with