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 1qaiap-00ACkx-Qr for pgsql-general@arkaria.postgresql.org; Mon, 28 Aug 2023 20:12:12 +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 1qaiao-00FWwk-78 for pgsql-general@arkaria.postgresql.org; Mon, 28 Aug 2023 20:12:09 +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 1qaiam-00FWum-JB for pgsql-general@lists.postgresql.org; Mon, 28 Aug 2023 20:12:09 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qaiae-001TOV-QG for pgsql-general@postgresql.org; Mon, 28 Aug 2023 20:12:07 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9B97E5C0156; Mon, 28 Aug 2023 16:11:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 28 Aug 2023 16:11:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1693253518; x=1693339918; bh=TCpfKSUF3ThJpw4kUn/K01WomFGKf4EGDTq fStDgThQ=; b=VgP9wDoHmq5r6bSUoktgrJrERrAmWwqusDcuBu57Kj4XDmWKFwx n7AeU2aFWtKVXKkc8D1XqD+5cH0gIGxRd/w+IZ2Ch+P5k2NSDqJu7eALwYPOOndl gSFwH3LhGsMJpG+mBzRVJps/sGtfxowvtVf6trnnmv5j2dymboCTWuTgxeHkfCzC s+pF+4ZmxfgwH5le7yDE2kViVytI1Aq6eOjfJh0QR6bUqHf6rGwhiia/+GpmDkhO 9xz/kuMtq5PI99NUO0RPu4xQ40PI4EuLH3bgQWL15FrYJj8dV4eHBz6Z/Tk2roig iezzFQpI9TnJ8OPAbqIZYqZur6U8c/XFWIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1693253518; x= 1693339918; bh=TCpfKSUF3ThJpw4kUn/K01WomFGKf4EGDTqfStDgThQ=; b=h CQ5Qy4toNJE4tEGchoKnFNZFgklKk0wI9ZMI+lTt6rB9EBlRZ6SUMBAZfm4n6z0/ ST62KA+35A4uL16WiQ0fpy6rGCNZlavVGJO4ZDwvJgDqFy3oEsKaqumxy8fspjrh vDf51TCCZ1J4jVfHxxRcFqCIBujxwnPxt/KUq/Mhp8Ygmfdj+RLv8SeNpyhqwIoQ gGcGke6U/4UPBltpaJ1K77kYSlf8LWE0hTGQzrKwLd55Ta86uV4Jcpgs0airDc3K ILsTDcwhn+NDpXRC8P+T1rFuvqyTh5WRo5TxTr/ERB8UnnRgEmCs3Dn1WhktaO4M Ym+cgmIAWa5YPgrbrjm/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefgedgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepudfgueelgeevfffhgeeljeehhfettdegieelgefg heefffefveegjedtueetffdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Aug 2023 16:11:57 -0400 (EDT) Message-ID: <41a740be-a8d7-b5c0-3054-c9bb7df4d362@aklaver.com> Date: Mon, 28 Aug 2023 13:11:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: auto vacuum question To: Alan Stange , pgsql-general General References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/28/23 13:06, Alan Stange wrote: > All, > > We recently changed the name of the superuser role in our database, and > then noticed some issues with the autovacuum processes.  We are running > 15.3, and had a login role, lets call it 'red', which had the superuser > attribute assigned to it.   This was the original owner/creator of all > the database objects, and the login role ended up getting used in some > ways for which the superuser attribute was no longer appropriate. > > So we elected to make a new role, lets call it 'reddba', which had > tightly controlled entitlements, and which also had the super user > attribute added to it.  After a couple of weeks and a lot of testing, we > removed the superuser attribute from the original 'red' account.  All > was working as expected. > > After a bit we noticed some warnings in the postgresql server log file > of the form 'WARNING:    skipping "tablexxx"   --- only table of > database owner can vacuum it" where tablexxx is many of the table names > in our system. Are you sure that is coming from autovacuum? What are the log lines preceding the WARNING? What is the complete warning line? > > We restored the superuser role to the original 'red' login role and > these messages went away. > > We are not running any explicit vacuum's.    As far as I can tell, these > warnings were comming from the autovacuum processes, and we did also > notice that some query stats became stale which I assume is related to > these same warnings. > > > So, I'm wondering how we can move the superuser role from role A to B, > so that the autovacuum process will still work?   I googled around a > bit, but didn't come up with anything useful for this. > > Thank you, > > Alan > > -- Adrian Klaver adrian.klaver@aklaver.com