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 1uVAjb-00EjRu-8C for pgsql-sql@arkaria.postgresql.org; Fri, 27 Jun 2025 15:11:23 +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 1uVAjY-002gl6-0K for pgsql-sql@arkaria.postgresql.org; Fri, 27 Jun 2025 15:11:20 +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 1uVAjX-002gkx-IH for pgsql-sql@lists.postgresql.org; Fri, 27 Jun 2025 15:11:20 +0000 Received: from mx0b-0039f802.pphosted.com ([205.220.176.45]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uVAjT-004I6w-2H for pgsql-sql@lists.postgresql.org; Fri, 27 Jun 2025 15:11:17 +0000 Received: from pps.filterd (m0209982.ppops.net [127.0.0.1]) by mx0b-0039f802.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55RDoCHQ029637 for ; Fri, 27 Jun 2025 08:11:14 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dat.com; h=cc :content-type:date:from:message-id:mime-version:subject:to; s= ppdk230404; bh=5LOWLeqvIkbU5Ra4vEZJSEyrOBrit2NG/6m0VXpTkyk=; b=e oWQWowiT6lf9nH8eJRBhXO7qbSIVgUGpNTtxNQU9rMXRBEPqmM44Xp49Dns+MYBM Lwmy8F5CslWyzKwkBGhCo62/+qXJ489JGf912vmP+C1wgmZUJWNDaRy6SJyc+BJB nrwoeyUaxhCEgpLiLyMBr0z6HwzY+rSK65AzMZyIbr3LV8xPRC/KI25RFjt767N1 XPtNK3rRcP7WdJjYWo56XENGZQx6z5tgu3bKNkg6CVcGupuEYYhGBuCFNJKhKLaG 9LmRNTcEtG4x0PWT5JEJiOGWtERpryxJtOgXwM2aW1za5z8ZN87YDAHiXC6LYvmc baUj05RPgM6+bx7oMe8aQ== Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by mx0b-0039f802.pphosted.com (PPS) with ESMTPS id 47gp3bkyvx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 27 Jun 2025 08:11:14 -0700 (PDT) Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-adb33457610so238501366b.3 for ; Fri, 27 Jun 2025 08:11:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751037072; x=1751641872; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5LOWLeqvIkbU5Ra4vEZJSEyrOBrit2NG/6m0VXpTkyk=; b=GKXscNpn7wZuWMJ1w/F2QBDZ+hZx59qqfJGkP8hW3EsjC83reMP2OGpWFO+RZM/fzy ViSRj8XazydFQeo0oM9McDgv0TiqytBBth0mSUOswqvxOt/MG9MDn46C9aUEi3eb4S6G /npaNADANylIW/wpuprAa+jXSrx9WBmDV599ExjyY5F4YcTy3IuOKPPayMAsVlPQ1sdH qaUuudW8HZhvwpaOOboCRMdqdngEhJ+2+nhRR2LjXwJg3NYCpMls0FbLsaz7L3Ulz43+ Or1qWK1d/tzqezTWJ5HpaRBoS4kZZ4SOXJb3q96hMV0VkN6RwRhAw0Fm1AVGATZZVG3n PpHw== X-Gm-Message-State: AOJu0YxrETLO4zePmnP1BKVJrMvoC/1eFRlcIYORsvwRX92EHHBVAnmQ o6CGwiyognYZZgVQHifVZasw5ZP7e8jPa6JMsQ4wz5jYt8Vf8ibUPUYuvymi38rTtIWs+zwlT1U 9N6D46W1ppNQvPt+LCziA7QFeM5J7f+6c0yN2FOK8x6QiYHS3xc7mFpoone+o2pIrBg2dWdkKpu DdHkZ07FYaNhg34UBRUlDA/HHI59tEPl261MD84iEBnTwecd8fVdaHuDG/mXVmOQ086xBFFHk1U /5gSw0= X-Gm-Gg: ASbGncsWCRoYsOO98cD4Wits3U6iFxAAo9IIKQUsig107n5teXcCkclaxt6TyqwFCLC nGMWVHqvacou/uS61LR56GWiDHpQyHvnESNGHGow/RS6+JEK+ANnLL4m0QT11qi5CXWi7Mx7zGj ngKQ== X-Received: by 2002:a17:907:9407:b0:ae0:dfa5:3520 with SMTP id a640c23a62f3a-ae3500c571amr330449666b.31.1751037071780; Fri, 27 Jun 2025 08:11:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFoLoJeoAFnZh4Tjy9nn8u0ihCyo2pl7F+pJGjkoigguGMaxI4+JGwNS6MwYyGaPe9cdDl31Qlz36IDtxNj2T4= X-Received: by 2002:a17:907:9407:b0:ae0:dfa5:3520 with SMTP id a640c23a62f3a-ae3500c571amr330443766b.31.1751037071067; Fri, 27 Jun 2025 08:11:11 -0700 (PDT) MIME-Version: 1.0 From: Sam Stearns Date: Fri, 27 Jun 2025 08:11:00 -0700 X-Gm-Features: Ac12FXwp7I8u1mTElffKX_TRrT96YaqNKdqBZGlD4Cp7eBlxs2mWu1btjC7XS1c Message-ID: Subject: Permission Denied on INSERT To: pgsql-sql Cc: Julie Mather , Peter Garza , Henry Ashu Content-Type: multipart/alternative; boundary="0000000000009c2b9006388f161b" X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-06-27_04,2025-06-26_05,2025-03-28_01 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000009c2b9006388f161b Content-Type: text/plain; charset="UTF-8" Howdy, We're getting a permission denied error on an INSERT and cannot figure out why: *[postgres@thiludbapql01 log]$ psql -U treg csbtestPassword for user treg:psql (16.6)Type "help" for help.csbtest=# show search_path; search_path---------------------------- csbtfsprd, interface, treg(1 row)csbtest=# grant usage on schema treg to treg;GRANTcsbtest=# GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA treg TO treg;GRANTcsbtest=# GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA treg TO treg;GRANTcsbtest=# GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA treg TO treg;GRANTcsbtest=# insert into treg.cd_combined_office_mappings (combined_office_id, tcsi_office_id, sb2_account_id, account_name, city, postal_code, state, category, is_preferred, is_closed, is_parent)csbtest-# values (('734309'::int8),('S.668863.785512'),('668863'::int4),('Testing Something'),('Beaverton'),('97008'),('OR'),('Carrier'),('Y'),('N'),('Y'));ERROR: permission denied for schema tregLINE 1: SELECT 1 FROM ONLY "treg"."cd_combined_offices" x WHERE "com... ^QUERY: SELECT 1 FROM ONLY "treg"."cd_combined_offices" x WHERE "combined_office_id" OPERATOR(pg_catalog.=) $1 FOR KEY SHARE OF xcsbtest=#* Any help would be greatly appreciated, please. Thank you, Sam -- Samuel Stearns Team Lead - Database c: 971 762 6879 | o: 971 762 6879 | DAT.com --0000000000009c2b9006388f161b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Howdy,

We're getting a p= ermission denied error on an INSERT and cannot figure out why:

[p= ostgres@thiludbapql01 log]$ psql -U treg csbtest
Password for user treg:=
psql (16.6)
Type "help" for help.

csbtest=3D# show = search_path;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 search_path
----------------= ------------
=C2=A0csbtfsprd, interface, treg
(1 row)

csbtest= =3D# grant usage on schema treg to treg;
GRANT
csbtest=3D# GRANT SELE= CT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA treg TO treg;
GRANTcsbtest=3D# GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA treg TO treg;<= br>GRANT
csbtest=3D# GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA treg TO tr= eg;
GRANT
csbtest=3D# insert into treg.cd_combined_office_mappings (c= ombined_office_id, tcsi_office_id, sb2_account_id, account_name, city, post= al_code, state, category, is_preferred, is_closed, is_parent)
csbtest-# = values (('734309'::int8),('S.668863.785512'),('668863&#= 39;::int4),('Testing Something'),('Beaverton'),('97008&= #39;),('OR'),('Carrier'),('Y'),('N'),('= Y'));
ERROR: =C2=A0permission denied for schema treg
LINE 1: SELE= CT 1 FROM ONLY "treg"."cd_combined_offices" x WHERE &qu= ot;com...
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^
QUERY: =C2=A0SELECT 1 FROM ONLY &qu= ot;treg"."cd_combined_offices" x WHERE "combined_office= _id" OPERATOR(pg_catalog.=3D) $1 FOR KEY SHARE OF x
csbtest=3D#
=


Any help would be greatly a= ppreciated, please.

Thank you,

Sam

--

Samuel Stearns
Team Lead - Database
c: 971 762 68= 79 | o: 971 76= 2 6879 = | DAT.c= om


--0000000000009c2b9006388f161b--