Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSgYU-00FFiG-4w for pgsql-docs@arkaria.postgresql.org; Wed, 24 Jan 2024 16:56:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rSgYT-006YJ5-4i for pgsql-docs@arkaria.postgresql.org; Wed, 24 Jan 2024 16:56:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSgYS-006YIG-1b for pgsql-docs@lists.postgresql.org; Wed, 24 Jan 2024 16:56:48 +0000 Received: from fout5-smtp.messagingengine.com ([103.168.172.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSgYN-0039tc-5u for pgsql-docs@lists.postgresql.org; Wed, 24 Jan 2024 16:56:46 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id EE0F5138008C; Wed, 24 Jan 2024 11:56:41 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 24 Jan 2024 11:56:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706115401; x= 1706201801; bh=nlM+jIi49Fb3NM5s1NpcShlm+ZtdJHrj9HuoEt8wcHI=; b=X bxa7mJrMJ35AvGU0tlFtZEzsG3Dq6prm4MLKQ2hwABmdwDe1lj0B974/h4oEtFc4 XupEJoopyCYNLkR+x3u41uLfPOrwIVSTMAUvVFGBU9yZZsbXSm/DdfFe9mgBq48f gdJxU/ADeBqrLSMB0XHyvnL2z1bc4TCN8JsrmpP5zhjl0jN7boHbWTvLiVnpBBVm BiJ3VMNUUdFfT5oj/M57ZlwuSvQ9X9P6KgxCo0+dwd3iHaK3ajk6wP910q7OkC4L Mh0iQI/U1FxHACiMS06Ep9slZUXOlZYTuh5cH3kEW4dJjiXIC0IphUcwUWPLV7RK sRCA3nahpNBhScHzCxuUA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeluddgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvddufedtgfevvdfgffeghfevuddvgefhudegudffhfeg udduteettdfhvdegffehnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh dpthifihhtthgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 24 Jan 2024 11:56:41 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1706115399; bh=50uJGE05VkBb2uRPZaHHRMC6o5Yr47z83EDxch4vs1s=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ZJ5waN90OtxV3YOzVNu3SYjXQs0KD4yZk+ZIFuIVPUjdIBYgM0bCLxD1Qre15e292 ctKuHrFnolhQApO4I4xpiw9BPcuKx9dxRS3bDsgy7/wTTlGImhM8TQep6gBPXCebUF V5PuiaqbF/wBEUGq/RgUA32BtPnB8v4jeuLJK8dhpgThhGF34hGrL8fwqfwGR5iKbL gaSmj/pRArZHazV8nX+WAW9xGwRhkE0uFC56j8LBGXN2pTuQv6fR7UgnLDuCJOh2jf KJT+sRt9D+CgO5WkhS39so3gqiV0UpQ6lx03SB+euNKu8k68hmYcHGTlXyaNeY5MXz 4zjG2Qh7TD49A== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id CBDB398; Wed, 24 Jan 2024 17:56:39 +0100 (CET) Date: Wed, 24 Jan 2024 17:56:39 +0100 From: Alvaro Herrera To: Laurenz Albe Cc: gparc@free.fr, Daniel Gustafsson , pgsql-docs Subject: Re: SQL command : ALTER DATABASE OWNER TO Message-ID: <202401241656.hbks4btwvjnf@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Jan-24, Laurenz Albe wrote: > 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). However, if the old owner had a pg_hba.conf line that allowed them in, and the new owner doesn't, then they're now both locked out of the database with no recourse. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "You don't solve a bad join with SELECT DISTINCT" #CupsOfFail https://twitter.com/connor_mc_d/status/1431240081726115845