RE: [PATCH] New default role allowing to change per-role/database settings

From: <Shinya11(dot)Kato(at)nttdata(dot)com>
To: <michael(dot)banck(at)credativ(dot)de>
Cc: <sfrost(at)snowman(dot)net>, <ibrar(dot)ahmad(at)gmail(dot)com>, <vignesh21(at)gmail(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: RE: [PATCH] New default role allowing to change per-role/database settings
Date: 2021-09-08 07:38:25
Message-ID: OSBPR01MB28851928BA2E4DC131FBCDD0C4D49@OSBPR01MB2885.jpnprd01.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>Thanks for letting me know, I've attached a rebased v4 of this patch, no other
>changes.
I tried it, but when I used set command, tab completion did not work properly and an error occurred.

---
postgres=> \conninfo
You are connected to database "postgres" as user "aaa" via socket in "/tmp" at port "5432".
postgres=> \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+---------------------------
aaa | | {pg_change_role_settings}
penguin | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
postgres=> show log
log_autovacuum_min_duration log_executor_stats log_min_error_statement log_replication_commands log_timezone
log_checkpoints log_file_mode log_min_messages log_rotation_age log_transaction_sample_rate
log_connections log_hostname log_parameter_max_length log_rotation_size log_truncate_on_rotation
log_destination log_line_prefix log_parameter_max_length_on_error log_statement logging_collector
log_disconnections log_lock_waits log_parser_stats log_statement_sample_rate logical_decoding_work_mem
log_duration log_min_duration_sample log_planner_stats log_statement_stats
log_error_verbosity log_min_duration_statement log_recovery_conflict_waits log_temp_files
postgres=> show log_duration ;
log_duration
--------------
off
(1 row)

postgres=> set log
log_parameter_max_length_on_error logical_decoding_work_mem
postgres=> set log_duration to on;
2021-09-08 16:23:39.216 JST [533860] ERROR: permission denied to set parameter "log_duration"
2021-09-08 16:23:39.216 JST [533860] STATEMENT: set log_duration to on;
ERROR: permission denied to set parameter "log_duration"
---

Regards,

--
Shinya Kato
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kyotaro Horiguchi 2021-09-08 07:40:33 Re: Possible missing segments in archiving on standby
Previous Message Fujii Masao 2021-09-08 07:10:41 Re: Estimating HugePages Requirements?