On Fri, Jan 25, 2019 at 02:31:57AM +0000, Jamison, Kirk wrote: > I'm not sure if I have understood the argument raised by Peter > correctly. Quoting Peter, "it's not clear that pg_upgrade and > vacuumdb are bound the same way, so it's not a given that the same > -j number should be used." I think it's whether the # jobs for > pg_upgrade is used the same way for parallel vacuum.
vacuumdb and pg_upgrade are designed for different purposes and have different properties, hence using a value of -j for one does not necessarily mean that the same value should be used for the other. An ANALYZE is nice because it is non-intrusive for a live production system, and if you begin to pass down a -j argument you may finish by eating more resources that would have been necessary for the same job. For some users perhaps that matters, for some it does not. So based on that linking the value used by pg_upgrade and vacuumdb is a bad concept in my opinion, and the patch should be rejected. More documentation on pg_upgrade side to explain that a bit better could be a good idea though, as it is perfectly possible to use your own post-upgrade script or rewrite partially the generated one. -- Michael
signature.asc
Description: PGP signature