Re: pg_dumpall dumps global objects with --statistics-only or --no-schema

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pg_dumpall dumps global objects with --statistics-only or --no-schema
Date: 2025-07-16 17:03:44
Message-ID: 2d3aeb5264a55a792f809b78dec01018602ae3dd.camel@j-davis.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 2025-06-30 at 16:44 -0400, Corey Huinker wrote:
> >
> > Since pg_dumpall treats global objects as schema-level content, it
> > currently
> > includes them with --schema-only but skips them with --data-only.
> > By that logic,
> > it should also skip them when either --statistics-only or --no-
> > schema is used.

Thank you.

>
> +1, pending resolution of the defaults issue.

I went ahead and committed this as it clearly needs to be fixed. We can
continue the options discussion.

Regards,
Jeff Davis

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2025-07-16 17:08:21 Re: Saving stack space in nbtree's _bt_first function
Previous Message Nathan Bossart 2025-07-16 16:55:48 Re: fix organization wording in psql's \copyright command