| From: | Sam Stearns <sam(dot)stearns(at)dat(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>, Dugan Kniesteadt <dugan(dot)kniesteadt(at)dat(dot)com>, Henry Ashu <henry(dot)ashu(at)dat(dot)com>, Avi Vallarapu <av(at)hexacluster(dot)ai> |
| Subject: | Re: INSERT Permission Denied |
| Date: | 2025-09-25 17:06:18 |
| Message-ID: | CAN6TVjm0JfhQ1g7RR52MoFmgjqM7eb0+Lz5NaDGt=WZwXV698w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
USAGE has already been granted.
On Thu, Sep 25, 2025 at 9:58 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Sam Stearns <sam. stearns@ dat. com> 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
> ZjQcmQRYFpfptBannerStart
> This Message Is From an External Sender
> This message came from outside your organization.
>
> ZjQcmQRYFpfptBannerEnd
>
> Sam Stearns <sam(dot)stearns(at)dat(dot)com> 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
>
>
--
Samuel Stearns
Team Lead - Database
c: 971 762 6879 | o: 971 762 6879 | DAT.com
<https://www.dat.com/?utm_medium=email&utm_source=DAT_email_signature_link>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2025-09-25 17:08:17 | Re: INSERT Permission Denied |
| Previous Message | Tom Lane | 2025-09-25 16:58:09 | Re: INSERT Permission Denied |