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 1lHPOm-0007QT-Kb for pgsql-general@arkaria.postgresql.org; Wed, 03 Mar 2021 11:10:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lHPOl-0003xV-Ig for pgsql-general@arkaria.postgresql.org; Wed, 03 Mar 2021 11:10:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHPOl-0003xO-BL for pgsql-general@lists.postgresql.org; Wed, 03 Mar 2021 11:10:35 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lHPOe-0004dn-QX for pgsql-general@lists.postgresql.org; Wed, 03 Mar 2021 11:10:34 +0000 Received: by mail-ed1-x531.google.com with SMTP id v13so12921703edw.9 for ; Wed, 03 Mar 2021 03:10:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=6g8DOjdTrUiOOWXMBweSkYogyaZziOh/Ix0flCfNO0A=; b=qaxdntuOdThgoqfEXszjLQhkGXhqxvX7i9cHGfJwkL9xH7X0INHxF3+N/wQzliCv3X bnj5xNZu8UZpu/qSLv3iwT0Xtm3lqjQw64HV1T2BfGJFumJo/YBk1h6KjB9KkMAjBPwG 6K8q31cnc3nUFItMthVbZV6eaj0m+Cr9ENe9G4+8ZbeuyzlWYwHu3hREP+uTJPJeOoba OQXoinjlUa1eeFjPYd3Z9vOSC2BY0syu708Hon7AeSk8R7IotDeo9IaWfZ0bnY3YixwT njWtQWLkWOweazP2aHTVrEoMk1LMaxvsR0YsoqwSEx5e4d6vSyMmwSxuLqgJk0puyzUp PTlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=6g8DOjdTrUiOOWXMBweSkYogyaZziOh/Ix0flCfNO0A=; b=Isv2T9BPeHPuYjcRqN8AdzNfNQ8jK2ZqehMowuN4bKXZn6cITWlEJFEQncd6NAQjxO 9fVcdseMRS4yySJxD8TKnV1b+2W9anoVgYpOvUWTeTygwCw69Sc8NMKRWLHjusCeZCZT V8N83Zgw5iVr5+9S8SkGutIaPDhT+oOttZJnwL+sBpTcgS2c8lA5k9V7sOu2foCMQLwg +gCzzC0jyxbTJFhuBH6Jac8Glzm6PWchSLUZFtWOYNunB13DTffVf++SwQ/V2QoVQuuf ute6QJDkDJcVyeTQARw+xv9dFxfWANLkHmZ3WDFghk4BLkgV4PfIQ2dPDst6YsUhLGif e01Q== X-Gm-Message-State: AOAM53232nuBksrXEPO4UhOIQbOvzMZmJnpOVWhdaMY5zi+Xb0BdWfP6 WPdddnuflfS8SYS3x5MhQTPFfQ== X-Google-Smtp-Source: ABdhPJxrQm+S2zwgshBkmd3T+uYehb63XXA2KFwGc64195Qj7FITTj41KeM1HWcK76GNwikB+e68qQ== X-Received: by 2002:a50:da4f:: with SMTP id a15mr24442025edk.301.1614769827749; Wed, 03 Mar 2021 03:10:27 -0800 (PST) Received: from localhost.localdomain (217-149-173-211.nat.highway.telekom.at. [217.149.173.211]) by smtp.gmail.com with ESMTPSA id r17sm968698edt.70.2021.03.03.03.10.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 03:10:27 -0800 (PST) Message-ID: Subject: Re: permission denied for pg_temp_XX when vacuuming From: Laurenz Albe To: Tobias Lott , pgsql-general@lists.postgresql.org Date: Wed, 03 Mar 2021 12:10:26 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2021-03-03 at 09:58 +0100, Tobias Lott wrote: > I have a database in a PostgreSQL 12 instance. > When running vacuumdb -z on the database with the user set as owner of the DB, I sometimes, not always, get errors such as: > error: vacuuming of table "pg_temp_93.vacuum_l" in database "10050" failed: ERROR: permission denied for schema pg_temp_93 > The specific number of the pg_temp schema (pg_temp_XX) is always changing. What could be the reason for this error? Those are schemas for temporary tables, which you cannot VACUUM outside the session that created them, so you can safely ignore these errors. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com