On Mon, 2024-05-06 at 23:43 -0400, Corey Huinker wrote: > > v21 attached. > > 0003 is the statistics changes to pg_dump, adding the options -X / -- > statistics-only, and the derivative boolean statisticsOnly. TheĀ -P > option is already used by pg_restore, so instead I chose -X because > of the passing resemblance to Chi as in the chi-square statistics > test makes it vaguely statistics-ish. If someone has a better letter, > I'm listening. > > With that change, people should be able to use pg_dump -X --table=foo > to dump existing stats for a table and its dependent indexes, and > then tweak those calls to do tuning work. Have fun with it. If this > becomes a common use-case then it may make sense to get functions to > fetch relation/attribute stats for a given relation, either as a > formed SQL statement or as the parameter values.
Can you explain what you did with the SECTION_NONE/SECTION_DATA/SECTION_POST_DATA over v19-v21 and why? Regards, Jeff Davis