Add a --role option to pg_dump, pg_dumpall, and pg_restore. This allows

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b0a6ad70a12b6949fdebffa8ca1650162bf0254a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-01-05T16:54:37Z
Releases: 8.4.0
Add a --role option to pg_dump, pg_dumpall, and pg_restore.  This allows
performing dumps and restores in accordance with a security policy that
forbids logging in directly as superuser, but instead specifies that you
should log into an admin account and then SET ROLE to the superuser.

In passing, clean up some ugly and mostly-broken code for quoting shell
arguments in pg_dumpall.

Benedek László, with some help from Tom Lane

Files