On Sat, 2025-03-01 at 13:52 -0500, Greg Sabino Mullane wrote: > > Can you expand on some of those cases? > > Certainly. I think one of the problems is that because this patch is > solving a pg_upgrade issue, the focus is on the "dump and restore" > scenarios. But pg_dump is used for much more than that, especially > "dump and examine".
Thank you for going through these examples. > I just don't think it should be enabled by default for everything > using pg_dump. For the record, I would not strongly object to having > stats on by default for binary dumps, although I would prefer them > off. I am open to that idea, I just want to get it right, because probably whatever the default is in 18 will stay that way. Also, we will need to think through the set of pg_dump options again. A lot of our tools seem to assume that "if it's the default, we don't need a way to ask for it explicitly", which makes it a lot harder to ever change the default and keep a coherent set of options. > So why not just expect people to modify their programs to use --no- > statistics for cases like this? That's certainly an option, but it's > going to break a lot of existing things, and create branching code: I suggest that we wait a bit to see what additional feedback we get early in beta. > Also, anything trained to parse pg_dump output will have to learn > about the new SELECT pg_restore_ calls with their multi-line formats > (not 100% sure we don't have that anywhere, as things like "SELECT > setval" and "SELECT set_config" are single line, but there may be > existing things) That's an interesting point. What tools are currrently trying to parse pg_dump output? Regards, Jeff Davis