ERROR: must be superuser to alter superusers - Mailing list pgsql-general

From Philippe Lang
Subject ERROR: must be superuser to alter superusers
Date
Msg-id 6C0CF58A187DA5479245E0830AF84F4218CF2B@poweredge.attiksystem.ch
Whole thread Raw
Responses Re: ERROR: must be superuser to alter superusers
List pgsql-general
Hi,

I had the very bad idea of removing the "superuser" flag from the
"pgsql" role. Now each time I try to set it back, with:

ALTER ROLE pgsql
  SUPERUSER;

... I get:

ERROR: must be superuser to alter superusers
SQL state: 42501

Since there is no superuser in the database engine anymore, what option
do I have?


I tried:

CREATE ROLE pgsql2
  SUPERUSER;

... But I get:

ERROR: must be superuser to create superusers
SQL state: 42501


Thanks,

Philippe Lang

pgsql-general by date:

Previous
From: "Anoo Sivadasan Pillai"
Date:
Subject: Re: Why the ERROR: duplicate key violates unique constraint "master_pkey" is raised? - Is this a Bug?
Next
From: David Brain
Date:
Subject: pg_dump problem: 'pg_dump: schema with OID 1515546 does not exist'