Re: pg_dump roles support

From: Benedek László <laci(at)benedekl(dot)tvnetwork(dot)hu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_dump roles support
Date: 2008-10-11 06:45:16
Message-ID: 48F04B7C.3080303@benedekl.tvnetwork.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello All,

in my last mail
http://www.mail-archive.com/pgsql-hackers(at)postgresql(dot)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

Attachment Content-Type Size
pg_dump.role.patch text/x-patch 13.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message ITAGAKI Takahiro 2008-10-11 09:05:35 contrib/pg_stat_statements
Previous Message Pavel Stehule 2008-10-11 06:29:25 Re: patch: array_ndims