| 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:15:20 |
| Message-ID: | CAN6TVj=v9DZ36E-BFVyacULPRbyvbmJwfWaLRDnKYnTdkWPHsA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
csbstage=# grant usage on schema treg to cwstagesvc;
GRANT
csbstage=# \q
[postgres(at)shiludbapql01 scripts]$ psql -U cwstagesvc csbstage
Password for user cwstagesvc:
psql (16.9)
Type "help" for help.
csbstage=# begin;
BEGIN
csbstage=*# INSERT INTO treg.cd_combined_office_mappings (
csbstage(*# tcsi_office_id, combined_office_id, sb2_account_id,
postal_code, category,
csbstage(*# account_name, city, state, is_preferred, is_closed,
is_parent
csbstage(*# ) VALUES
csbstage-*# ('TCSI001', 10001, 2001, '90210', 'RETAIL', 'Acme Corp', 'Los
Angeles', 'CA', 'Y', 'N', 'Y'),
csbstage-*# ('TCSI002', 10001, 2002, '10001', 'WHOLESALE', 'Beta LLC', 'New
York', 'NY', 'N', 'N', 'N'),
csbstage-*# ('TCSI003', 10002, 2003, '60601', 'RETAIL', 'Gamma Inc',
'Chicago', 'IL', 'Y', 'N', 'N'),
csbstage-*# ('TCSI004', 10003, 2004, '77001', 'SERVICE', 'Delta Co',
'Houston', 'TX', 'N', 'Y', 'N'),
csbstage-*# ('TCSI005', 10003, 2005, '33101', 'RETAIL', 'Epsilon Ltd',
'Miami', 'FL', 'Y', 'N', 'Y');
ERROR: permission denied for schema treg
LINE 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 x
csbstage=!# rollback;
ROLLBACK
csbstage=#
On Thu, Sep 25, 2025 at 10:08 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Sam Stearns <sam. stearns@ dat. com> writes: > USAGE has already been
> granted. [ shrug. . . ] Apparently not. regards, tom lane
>
>
>
> 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:
> > USAGE has already been granted.
>
> [ shrug... ] Apparently not.
>
> 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:32:55 | Re: INSERT Permission Denied |
| Previous Message | Tom Lane | 2025-09-25 17:08:17 | Re: INSERT Permission Denied |