Re: SQL command : ALTER DATABASE OWNER TO

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: gparc(at)free(dot)fr, Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: pgsql-docs <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: SQL command : ALTER DATABASE OWNER TO
Date: 2024-01-24 15:35:10
Message-ID: ae2b506af55afec6f3841d69c1f01aea976df619.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Wed, 2024-01-24 at 15:40 +0100, gparc(at)free(dot)fr wrote:
> maybe a misunderstanding of my part, but your proposed modification doesn't matched
> with the current behaviour of the command as precisely the object privileges of the old owner are **NOT** transferred
> to the new owner along with the ownership

But that is what happens.

The permissions are transferred to the new owner, so the old owner doesn't
have any privileges on the object (and, in your case, cannot connect to
the database any more).

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Alvaro Herrera 2024-01-24 15:37:49 Re: Spam complaint
Previous Message Daniel Gustafsson 2024-01-24 14:58:19 Incorrect grammar on ALTER EVENT TRIGGER