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 1v1pIQ-00D2jR-PW for pgsql-admin@arkaria.postgresql.org; Thu, 25 Sep 2025 16:58:18 +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 1v1pIP-003zRF-82 for pgsql-admin@arkaria.postgresql.org; Thu, 25 Sep 2025 16:58:17 +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 1v1pIO-003zR7-TN for pgsql-admin@lists.postgresql.org; Thu, 25 Sep 2025 16:58:16 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v1pIM-002OpT-2q for pgsql-admin@lists.postgresql.org; Thu, 25 Sep 2025 16:58:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 58PGw9CM3772274; Thu, 25 Sep 2025 12:58:09 -0400 From: Tom Lane To: Sam Stearns cc: Pgsql-admin , Dugan Kniesteadt , Henry Ashu , Avi Vallarapu Subject: Re: INSERT Permission Denied In-reply-to: References: Comments: In-reply-to Sam Stearns message dated "Thu, 25 Sep 2025 09:49:24 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3772272.1758819489.1@sss.pgh.pa.us> Date: Thu, 25 Sep 2025 12:58:09 -0400 Message-ID: <3772273.1758819489@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sam Stearns writes: > I have an INSERT: > that's failing with permission denied on the schema: > ERROR: permission denied for schema treg > LINE 1: SELECT 1 FROM ONLY "treg"."cd_combined_offices" x WHERE "com... > ^ You need to grant USAGE permission on that schema. It's roughly comparable to search privilege on a directory in most OSes. regards, tom lane