Re: permission denied to create and drop user - Mailing list pgsql-general

From Adrian Klaver
Subject Re: permission denied to create and drop user
Date
Msg-id eadf39ed-6252-b685-6016-3c931e7dbf1b@aklaver.com
Whole thread Raw
In response to Re: permission denied to create and drop user  (Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com>)
List pgsql-general
On 2/2/21 2:43 PM, Joao Miguel Ferreira wrote:
> Hi,
> 
> 

> But... my dump file contains some agressive commands that are actually 
> making a reall mess. here they are:
> 
> CREATE ROLE pgcon;
> ALTER ROLE pgcon WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN 
> NOREPLICATION NOBYPASSRLS;
> CREATE ROLE postgres;
> ALTER ROLE postgres WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB 
> LOGIN NOREPLICATION NOBYPASSRLS;
> 
> that is why I messed up my database. Lucky it is not critical at all. I 
> can start all over again, no problem.
> 
> maybe "pg_dumpall" has options to avoid those changes?
> 

That would be attributing AI abilities to pg_dumpall that it does not 
have. Those commands got there from someone in the original database 
tinkering with grants.


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Joao Miguel Ferreira
Date:
Subject: Re: permission denied to create and drop user
Next
From: Cherio
Date:
Subject: Re: count(*) vs count(id)