Re: debugger from superuser only.... why?
От | Alexander Petrossian |
---|---|
Тема | Re: debugger from superuser only.... why? |
Дата | |
Msg-id | 086C5BA0-7B8F-42EE-ABEC-3EF403D1599B@gmail.com обсуждение исходный текст |
Ответ на | Re: debugger from superuser only.... why? (Luca Ferrari <fluca1978@gmail.com>) |
Ответы |
Re: debugger from superuser only.... why?
|
Список | pgsql-general |
22 сент. 2023 г., в 14:20, Luca Ferrari <fluca1978@gmail.com> написал(а):
Checked few sources, can not seem to find reasoning behind this limit:
You must have superuser privileges to use the debugger.What is the reason?I suspect the debugger will need to open a connection back to pgadmin,
and that probably is the need for privileges.
Not sure.
I’ve collected log for supseruser debug session under IntelliJ plugin.
Playing this under non-privileged user... some commands pass (below for history) and this one does not:
SELECT * FROM pldbg_set_global_breakpoint(1, 65695, -1, NULL);
ERROR: must be a superuser to create a breakpoint
I am wondering why is this, why not allow debugging for non-privileged users?
PAF
P.S. those that pass are
SELECT settingFROM pg_settingsWHERE name = 'shared_preload_libraries';SELECT * FROM (SELECTt_namespace.nspname,t_extension.extname,t_extension.extversionFROM pg_extension t_extensionJOIN pg_namespace t_namespace ON t_extension.extnamespace = t_namespace.oid)q;SELECT * FROM (SELECT pid,application_name,usename,client_addrFROM pg_stat_activityWHERE application_name = 'idea_debugger'AND pid <> pg_backend_pid())q;SELECT * FROM pldbg_create_listener();
В списке pgsql-general по дате отправления: