To improve the performance of pg_dump can we add a new sql function that can operate more efficiently than the pg_stats view? It could also take in an optional list of oids to filter on. This will help speed up the dump and restore within pg18 and future upgrades to higher pg versions.
Thanks Hari Krishna Sunder On Fri, Mar 7, 2025 at 7:43 PM Corey Huinker <corey.huin...@gmail.com> wrote: > I tried to generalize that requirement to all of >> {schema|data|statistics} for consistency, but that resulted in 9 >> options. >> > > 9 options that resolve to 3 boolean variables. It's not that hard. > > And if we add a fourth option set, then we have 12 options. So it's O(3N), > not O(N^2). > > People have scripts now that rely on the existing -only flags, and nearly > every other potentially optional thing has a -no flag. Let's leverage that. >