From: | Daniel Gustafsson <dgustafsson(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix dumping role comments when using --no-role-passwords |
Date: | 2024-03-21 22:34:13 |
Message-ID: | E1rnQzF-00504A-IS@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix dumping role comments when using --no-role-passwords
Commit 9a83d56b38c added support for allowing pg_dumpall to dump
roles without including passwords, which accidentally made dumps
omit COMMENTs on roles. This fixes it by using pg_authid to get
the comment.
Backpatch to all supported versions. Patch simultaneously written
independently by Álvaro and myself.
Author: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Author: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reported-by: Bartosz Chroł <bartosz(dot)chrol(at)handen(dot)pl>
Discussion: https://postgr.es/m/AS8P194MB1271CDA0ADCA7B75FCD8E767F7332@AS8P194MB1271.EURP194.PROD.OUTLOOK.COM
Discussion: https://postgr.es/m/CAEP4nAz9V4H41_4ESJd1Gf0v%3DdevkqO1%3Dpo91jUw-GJSx8Hxqg%40mail.gmail.com
Backpatch-through: v12
Branch
------
REL_15_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/12128be623fdfd1f15167a477d7de46744fb9bca
Modified Files
--------------
src/bin/pg_dump/pg_dumpall.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2024-03-21 22:34:24 | pgsql: Fix dumping role comments when using --no-role-passwords |
Previous Message | Daniel Gustafsson | 2024-03-21 22:34:03 | pgsql: Fix dumping role comments when using --no-role-passwords |