> On 16 Jun 2025, at 09:29, Vaibhav Dalvi <vaibhav.da...@enterprisedb.com> > wrote:
> I'm able to create the object as shown in the below: > > postgres=# CREATE OR REPLACE FUNCTION pg_catalog.nont_ext_func() RETURNS char > AS $$ BEGIN return 'v'; END; $$ LANGUAGE plpgsql; > CREATE FUNCTION > > Why can't we strictly restrict object creation in pg_catalog? Do you have allow_system_table_mods set to ON by any chance? As Laurenz said, such creation is already restricted, but it can be circumvented by using said GUC (which is *not* intended for production usage). -- Daniel Gustafsson