Re: [PATCH] Add enable_copy_program GUC to control COPY PROGRAM - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCH] Add enable_copy_program GUC to control COPY PROGRAM
Date
Msg-id aUsy7jYSYSDjkbf2@momjian.us
Whole thread Raw
In response to Re: [PATCH] Add enable_copy_program GUC to control COPY PROGRAM  (Ignat Remizov <ignat980@gmail.com>)
List pgsql-hackers
On Wed, Dec  3, 2025 at 06:44:51PM +0200, Ignat Remizov wrote:
> This patch is intentionally "small": it only removes the most commonly
> exploited primitive (COPY PROGRAM). I agree a more comprehensive approach
> would be ideal (covering extensions/untrusted PLs, LOAD, filesystem functions,
> etc.), but that would take more time to design and implement properly, and was
> already in my plans over the next few weekends, ideally via a single control 
> point. Something that flips the assumption that superuser is a trusted role, 
> and instead requires explicit enabling of potentially dangerous features.

You probably could have saved yourself some work by following our normal
workflow for change proposals:

   https://wiki.postgresql.org/wiki/Todo
   Desirability -> Design -> Implement -> Test -> Review -> Commit

You went all the way to "Implement" without before getting agreement on
"Desirability".

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Do not let urgent matters crowd out time for investment in the future.



pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Fix wrong reference in pg_overexplain's doc
Next
From: Dharin Shah
Date:
Subject: Re: Fwd: [PATCH] Add zstd compression for TOAST using extended header format