On Fri, 2025-03-07 at 15:46 -0500, Robert Treat wrote: > There might be some variability depending on the default behavior, > but > if we assume that default means "output everything"
The reason I posted this patch is that, depending on performance characteristics in v18 and a decision to be made during beta, the default may not output statistics. So we need whatever set of options we choose to have the freedom to change statistics to be either opt-in or opt-out, without needing to reconsider the overall set of options. I tried to generalize that requirement to all of {schema|data|statistics} for consistency, but that resulted in 9 options. We don't need the options to be perfectly consistent at the expense of usability, though, so if 9 options is too many we can just have three new options for stats, for a total of 5 options: --data-only --schema-only --statistics-only --statistics (stats also, regardless of default) --no-statistics (no stats, regardless of default) which would allow combinations like "--schema-only --statistics" to mean "schema and statistics but not data". There would be a bit of weirdness because --statistics can combine with --data-only and -- schema-only, but nothing can combine with --statistics-only. > if you want everything --include=schema,data,statistics (presumably > redundant with the default behavior) > if you want schema only --include=schema > if you want "everything except schema" --include=data,statistics That could work. Comparing to the options above yields: --include=statistics <=> --statistics-only --include=schema,data,statistics <=> --statistics --include=schema,statistics <=> --schema-only --statistics --include=data,statistics <=> --data-only --statistics --include=schema,data <=> --no-statistics Not sure which approach is better. Regards, Jeff Davis