public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Sam Stearns <[email protected]>
Cc: Pgsql-admin <[email protected]>
Cc: Dugan Kniesteadt <[email protected]>
Cc: Henry Ashu <[email protected]>
Cc: Avi Vallarapu <[email protected]>
Subject: Re: INSERT Permission Denied
Date: Thu, 25 Sep 2025 12:58:09 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAN6TVj=MEs68RQJ3sBBNW9CH9OuwnTSj1OpgVvNrE+voWz7aHg@mail.gmail.com>
References: <CAN6TVj=MEs68RQJ3sBBNW9CH9OuwnTSj1OpgVvNrE+voWz7aHg@mail.gmail.com>

Sam Stearns <[email protected]> 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





reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: INSERT Permission Denied
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox