What db objects can only be created with superuser?

From: Yash Jain <jainism987e(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: What db objects can only be created with superuser?
Date: 2024-11-25 11:49:24
Message-ID: CANvvV1p+vgh4CFg7D2Rts+TZVc16_LY34UgUCJZobge8-mH3=Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message John Naylor 2024-11-25 12:13:39 branch-free tuplesort partitioning
Previous Message Marcos Pegoraro 2024-11-25 11:37:16 Re: Missing INFO on client_min_messages