Re: INSERT Permission Denied
От | Tom Lane |
---|---|
Тема | Re: INSERT Permission Denied |
Дата | |
Msg-id | 3825124.1758821575@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: INSERT Permission Denied (Sam Stearns <sam.stearns@dat.com>) |
Ответы |
Re: INSERT Permission Denied
|
Список | pgsql-admin |
Sam Stearns <sam.stearns@dat.com> writes: > csbstage=*# INSERT INTO treg.cd_combined_office_mappings ( > csbstage(*# tcsi_office_id, combined_office_id, sb2_account_id, > postal_code, category, > ... > 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; Looking closer, that's not your original query: it looks to be a foreign-key enforcement query. That'll be run as the owner of the table (I think the owner of the referencing table, but I might have that backwards). That owner is what is lacking permissions. regards, tom lane
В списке pgsql-admin по дате отправления: