Hello All,
in my last mail
http://www.mail-archive.com/pgsql-hackers@postgresql.org/msg114835.html
I have sent you a patch of pg_dump and pg_dumpall --role option support.
Nobody replied
or commented jet so now I send it again. The attached patch is the same
as the last one,
except it is against the current upstream HEAD.
The patch contains the following things:
- pg_dump and pg_dumpall accepts the --role=rolename parameter, and
sends a SET ROLE
command on their connections
- pg_dumpall passes this option to the called pg_dump process
- pg_dump emits the SET ROLE command into the archive
- sgml documentation of this feature
Summary:
doc/src/sgml/ref/pg_dump.sgml | 16 ++++++++++
doc/src/sgml/ref/pg_dumpall.sgml | 27 +++++++++++++----
src/bin/pg_dump/pg_backup.h | 2 +
src/bin/pg_dump/pg_backup_archiver.c | 38 +++++++++++++++++++++--
src/bin/pg_dump/pg_dump.c | 55
+++++++++++++++++++++++++++++++++-
src/bin/pg_dump/pg_dumpall.c | 26 +++++++++++++++-
6 files changed, 153 insertions(+), 11 deletions(-)
Thank you, best regards:
Laszlo Benedek