Do not DROP default roles in pg_dumpall -c
authorStephen Frost <[email protected]>
Wed, 25 May 2016 03:31:55 +0000 (23:31 -0400)
committerStephen Frost <[email protected]>
Wed, 25 May 2016 03:31:55 +0000 (23:31 -0400)
commit018eb027f181234be7a580e9502c40ac5ad04f77
treebf4afc4e1a3fa1193154b583c1dd681128bd25cf
parentf5e7b2f910b7cdb51b7369c76627998432ab6821
Do not DROP default roles in pg_dumpall -c

When pulling the list of roles to drop, exclude roles whose names
begin with "pg_" (as we do when we are dumping the roles out to
recreate them).

Also add regression tests to cover pg_dumpall -c and this specific
issue.

Noticed by Rushabh Lathia.  Patch by me.
src/bin/pg_dump/pg_dumpall.c
src/bin/pg_dump/t/002_pg_dump.pl