pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: permission denied to create and drop user
Date: Tue, 02 Feb 2021 17:30:37 -0500
Message-ID: <3830672.1612305037@sss.pgh.pa.us> (raw)
In-Reply-To: <CALyyT7Rd1KB=KhO=HKcpyvXVC9Qy9uKRzfAbcv3Z4E7cuBTJHg@mail.gmail.com>
References: <CALyyT7Rd1KB=KhO=HKcpyvXVC9Qy9uKRzfAbcv3Z4E7cuBTJHg@mail.gmail.com>

Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com> writes:
> I have just installed postgresql on Debian stable (from debian apt
> archives). It seems that the postgres user does not have permissions to
> DROP/CREATE USER. I was expecting the postgres user to be a superuser but
> something seems weird. my postgres user does not have the usual superuser
> attributes.

That is weird.  Maybe just drop the cluster and re-initdb?

It might be worth checking the debian postgres package's documentation to
see if they're throwing you some kind of curveball.  One thing I was about
to suggest is that the bootstrap superuser might not be named postgres
(it'll be named after whichever OS user ran initdb).  However, your "\du"
output pretty clearly shows you have no superuser, and that's just odd.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <3830672.1612305037@sss.pgh.pa.us>
Permalink:  ../3830672.1612305037@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3830672.1612305037@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, joao.miguel.c.ferreira@gmail.com
  Subject: Re: permission denied to create and drop user
  In-Reply-To: <3830672.1612305037@sss.pgh.pa.us>
  References: <CALyyT7Rd1KB=KhO=HKcpyvXVC9Qy9uKRzfAbcv3Z4E7cuBTJHg@mail.gmail.com> <3830672.1612305037@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox