Re: How to restore roles without changing postgres password
Andrus <kobruleht2@hot.ee>
From: "Andrus" <kobruleht2@hot.ee>
To: "Justin" <zzzzz.graf@gmail.com>, "Tom Lane" <tgl@sss.pgh.pa.us>
Cc: "pgsql-general" <pgsql-general@postgresql.org>
Date: 2020-02-12T10:06:56Z
Lists: pgsql-general, pgsql-docs
Hi! >Not a bad idea, would want to extend this to all the roles on the server not just postgres >I've edited the global dump many times removing/editing table spaces, comment old users, etc.. Maybe it is easier to create plpgsql procedure which returns desired script as text. Or it retrieves globals from other cluster using dblink and applies changes to new cluster. This can be called instead of pq_dumpall and can edited for custom needs. Editing plpgsql script is easier for postgres users than creating sed script to delete commands from sql file. Andrus.
Commits
-
Doc: fix old oversights in GRANT/REVOKE documentation.
- dce988145f7e 13.0 landed
- a56c495873c8 10.13 landed
- 804a650e4b0c 9.6.18 landed
- 736ba917f484 11.8 landed
- 2efefd28add2 12.3 landed
- 2b9d4ec1d3c0 9.5.22 landed