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 1tEFPX-006Fx1-Qp for pgsql-admin@arkaria.postgresql.org; Thu, 21 Nov 2024 22:12:27 +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 1tEFPW-002CKH-G4 for pgsql-admin@arkaria.postgresql.org; Thu, 21 Nov 2024 22:12:26 +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 1tEFPW-002CK8-40 for pgsql-admin@lists.postgresql.org; Thu, 21 Nov 2024 22:12:26 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tEFPT-0037WP-4f for pgsql-admin@lists.postgresql.org; Thu, 21 Nov 2024 22:12:24 +0000 Received: by mail-wr1-x441.google.com with SMTP id ffacd0b85a97d-38231f84dccso1007308f8f.1 for ; Thu, 21 Nov 2024 14:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1732227141; x=1732831941; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=abo8A5F0Hhgvqj1XyBIDDeqOaGQr15vQT3XGEca+EKc=; b=g18tcZ8pbF8c9XG7kAAg4jADxnxfjw02DLCxVzjSLf68VTLFepVWQhr613bZIzaCpB hdH5BGZVuQ66Djk+5+2WWUS4Sv7Iikw229yjlboe1tU6z+dzO4473+mBjtzqGCSc7f+j 4K1baVIF3VaPHTW3xlTPPN33Yvg+Jc5F9HZnBDY8C6UlPxMjFw2NcQoNpaIMkI0A6LjK 7k0a0fTSU2nyySTjgxxKGKdTUz8gHAetXE//2BR+W5UDrpaYhi5BFCkJQ5o7JQpQZsW8 UYS47IBKcergcvN2sjmigmgZ64pYsZvRvpvBXgQvXIMkryiqWOh7qTGlwrPHoTS+sWTw uOUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732227141; x=1732831941; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=abo8A5F0Hhgvqj1XyBIDDeqOaGQr15vQT3XGEca+EKc=; b=V5drZekTPgIoPWw24/15uoUhTF0Ed8qTtzd863ihpRsg3tULt1UJTfNaG8UTPIKU/Y yu8mdkn3LUQayMCc29kNfr1SzNDoDrMOV4k5gXU35NSxDKjbEtXWjOR7Z+ahrQl/ifUD 3UqvLf6MCKP5JmkpFno/PZ7EejmP58B4yNPKtqiN2njlz55Ac4xyNn9VzULHFoFStg2e qUVEw1swcpYW86Ok1U+eS2qFNJyl30Sl0WfwsL20yaWe13CXVsRf9Y8Cyha7RsdVFL6J cjhcFOPVqYGTYh6i8DNDfIdkWU2HgGon2TswuQmUFenff/yZzeYxBvFxp5+4y8RsUU4n /TrQ== X-Forwarded-Encrypted: i=1; AJvYcCWGSFm7TFyC3qgn3k19/hGsxwvhL5unFsP2j5irzKoAy8vxALsycgxQzYP2pjZ25fBKxikpnfCP53Q6dQ==@lists.postgresql.org X-Gm-Message-State: AOJu0Yzn5baLsdh8b7lnNzzn3zKqS8cp11oVzu10UhY0sYuorX4GN8kR /aPAqXeYTc7Lk0rSjamSHq0X70xolgvsdAg8MUcH5rL+DYpVxjUhwM7bBSXbIn8= X-Gm-Gg: ASbGncuduCc74GFKOEbmpxLfIls9VZr6NlL39gjBd8mXwK3h0dkqsRmK89rSMZZJ9Yn Lzn9kwfoQkaMVx8bcRNBxxQr4G58W4apUwrVLseJbgSWyfMtLhwQocDYcwZVaTxH90xDkAIT7YX AgF3ESjyFM3lovgUrd/Aiz9iA85Nv9cUnX4OMe5GouHQqzJeMT/+e0g6g7WWt1G0RddjJDkVnJW D1jGnD2zU5iAWpV5EpKGH2kZTT5hiCGGEQoKEGDteDD7I2JaF6G/mJR8fpwQ3/I9RV8Mi4W X-Google-Smtp-Source: AGHT+IEGc5GyZPBOfzNCTmY6N6rjKEnk4B/WwIZxtdykD8Z3jxu8+yQI63Gbdv02koVcVhyqzZgklQ== X-Received: by 2002:a05:6000:2cd:b0:382:4b9a:f510 with SMTP id ffacd0b85a97d-38260b455damr611425f8f.11.1732227140873; Thu, 21 Nov 2024 14:12:20 -0800 (PST) Received: from localhost.localdomain ([2001:16b8:c3b1:4600:c7f2:47a0:1590:a4e4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbc3b4asm692996f8f.84.2024.11.21.14.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2024 14:12:20 -0800 (PST) Message-ID: Subject: Re: Table owner change issue From: Laurenz Albe To: Benjamin Patrick , "pgsql-admin@lists.postgresql.org" Date: Thu, 21 Nov 2024 23:12:20 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-2.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2024-11-21 at 20:42 +0000, Benjamin Patrick wrote: > I am using PGAdmin 4.8.8.=C2=A0 New to the group and hoping this the corr= ect group for assistance. > My instance is an AWS instance so there isn't a viable superuser. > I had a user create table with the table owner being themself.=C2=A0 user= .schema.tablename > I wanted to change the owner to the dbowner, but was unable in pgadmin or= script. dbowner.schema.tablename See the documentation: https://www.postgresql.org/docs/current/sql-altertab= le.html "To alter the owner, you must be able to SET ROLE to the new owning role, and that role must have CREATE privilege on the table's schema." Yours, Laurenz Albe