Re: "permission denied to COPY to or from an external program" even with GRANT pg_execute_server_program

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Chema <chema(at)interneta(dot)org>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: "permission denied to COPY to or from an external program" even with GRANT pg_execute_server_program
Date: 2024-06-13 01:44:40
Message-ID: CAKFQuwadEpozBwUp36ts7wR30J-r=FxUV5_1LHCfkXE_Czb6jA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday, June 12, 2024, Chema <chema(at)interneta(dot)org> wrote:

>
> Create Role justintestin noinherit login password 'qwer';
>
>
> GRANT pg_execute_server_program TO justintestin;
>
>
>
Pretty sure since you choose not to allow justintestin to inherit stuff you
will need to issue a “set role to pg_execute_server_program” before you
attempt the copy command.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2024-06-13 01:48:06 Re: "permission denied to COPY to or from an external program" even with GRANT pg_execute_server_program
Previous Message Chema 2024-06-13 01:31:32 "permission denied to COPY to or from an external program" even with GRANT pg_execute_server_program