pg_dumpall --roles-only interact with other options - Mailing list pgsql-hackers

From jian he
Subject pg_dumpall --roles-only interact with other options
Date
Msg-id CACJufxFf5=wSv2MsuO8iZOvpLZQ1-meAMwhw7JX5gNvWo5PDug@mail.gmail.com
Whole thread Raw
Responses Re: pg_dumpall --roles-only interact with other options
List pgsql-hackers
hi.

pg_dumpall --verbose --roles-only --no-schema --file=1.sql
pg_dumpall --verbose --roles-only --no-data --file=2.sql
pg_dumpall --verbose --roles-only --no-statistics --file=3.sql
pg_dumpall --verbose --roles-only --statistics-only --file=4.sql
pg_dumpall --verbose --roles-only --data-only --file=5.sql
pg_dumpall --verbose --roles-only --schema-only --file=6.sql

What should we expect for the above commands?
the current behavior is not good, i think, some even do not dump the
roles command.

I would expect the last three commands to raise errors, while the first three
should simply ignore the options (--no-schema, --no-data, --no-statistics).

This situation also happens to another pg_duampall option: --tablespaces-only.

what do you think?



--
jian
https://www.enterprisedb.com/



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: More speedups for tuple deformation
Next
From: Michael Paquier
Date:
Subject: Re: AIX support