What db objects can only be created with superuser? - Mailing list pgsql-hackers

From Yash Jain
Subject What db objects can only be created with superuser?
Date
Msg-id CANvvV1p+vgh4CFg7D2Rts+TZVc16_LY34UgUCJZobge8-mH3=Q@mail.gmail.com
Whole thread Raw
Responses Re: What db objects can only be created with superuser?
Re: What db objects can only be created with superuser?
List pgsql-hackers
Hi all,
I noticed that in the CREATE EXTENSION code, the permission is elevated to the superuser who creates and owns all of the extension objects.
I was wondering why this elevation is done.
I understand that the C-based functions can only be created by a superuser. Are there any other db objects that require superuser? Or is C-based functions the only one?

I am hacking around the extension code (locally for my own purpose), and seeking information on this. Thank you.

pgsql-hackers by date:

Previous
From: Marcos Pegoraro
Date:
Subject: Re: Missing INFO on client_min_messages
Next
From: Peter Eisentraut
Date:
Subject: Re: Add support for Tcl 9