pg_dumpall with flag --no-role-passwords omits roles comments as well
Bartosz Chroł <bartosz.chrol@handen.pl>
From: Bartosz Chroł <bartosz.chrol@handen.pl>
To: "pgsql-general@postgresql.org" <pgsql-general@postgresql.org>
Date: 2024-03-20T17:40:55Z
Lists: pgsql-general
Hello, I've tried to dump roles using the following call to pg_dumpall: pg_dumpall.exe --roles-only --no-role-passwords However I noticed that comments on roles are also omitted from the dump, as if --no--comments flag was set - but it wasn't. When I call `pg_dumpall.exe --roles-only` than it works as expected - both passwords and comments are dumped. Is it correct behaviour? It doesn't look like to me, but maybe I'm missing something. I've checked PostgreSQL 16.2 (on Windows 11 and Ubuntu 20) and 14.0 (on Windows Server 2019), same everywhere. Best regards Bartek
Commits
-
Fix dumping role comments when using --no-role-passwords
- d82cb467bbc2 12.19 landed
- be01c8c3450e 14.12 landed
- affc46b76d50 13.15 landed
- 7e65ad197f9d 17.0 landed
- 5863bacb87c1 16.3 landed
- 12128be623fd 15.7 landed