Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRazd-0008OD-8G for pgsql-docs@arkaria.postgresql.org; Tue, 08 Mar 2022 14:39:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRazc-0006Es-4d for pgsql-docs@arkaria.postgresql.org; Tue, 08 Mar 2022 14:39:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRazb-0006Ej-Tn for pgsql-docs@lists.postgresql.org; Tue, 08 Mar 2022 14:39:15 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRazZ-0000XF-JW for pgsql-docs@lists.postgresql.org; Tue, 08 Mar 2022 14:39:14 +0000 Received: from bruce by momjian.us with local (Exim 4.94.2) (envelope-from ) id 1nRazX-006aX5-NP; Tue, 08 Mar 2022 09:39:11 -0500 Date: Tue, 8 Mar 2022 09:39:11 -0500 From: Bruce Momjian To: gparc@free.fr Cc: pgsql-docs@lists.postgresql.org Subject: Re: SQL command : ALTER DATABASE OWNER TO Message-ID: References: <1216810578.281812820.1646732222284.JavaMail.root@zimbra15-e2.priv.proxad.net> <2023185982.281851219.1646733038464.JavaMail.root@zimbra15-e2.priv.proxad.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023185982.281851219.1646733038464.JavaMail.root@zimbra15-e2.priv.proxad.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 8, 2022 at 10:50:38AM +0100, gparc@free.fr wrote: > > Hello, > > for this "ALTER DATABASE" form, it should be mentioned that after execution of the command, > the old database owner loses all his privileges on it (even connection) although it might > still owns schemas or objects (tables, index,...) inside it. > > Thanks in advance to add this important precision. Uh, the original owner is not the owner anymore, so why would they assume they can reconnect, unless there is some other permission specified for them. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.