| From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Cc: | jobinau(at)gmail(dot)com |
| Subject: | BUG #19540: Inconsistent integer-to-octal formatting for permission GUCs in pg_settings (boot_val vs setting) |
| Date: | 2026-06-30 06:45:35 |
| Message-ID: | 19540-e641040b089ab768@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 19540
Logged by: Jobin Augustine
Email address: jobinau(at)gmail(dot)com
PostgreSQL version: 18.4
Operating system: All
Description:
This is more of an undocumented behavior in all PostgreSQL versions.
Steps to reproduce:
postgres=# SELECT name, setting, boot_val
FROM pg_settings
WHERE name IN ('data_directory_mode', 'log_file_mode',
'unix_socket_permissions');
Actual Result :
name | setting | boot_val
-------------------------+---------+----------
data_directory_mode | 0700 | 448
log_file_mode | 0600 | 384
unix_socket_permissions | 0777 | 511
(3 rows)
File/Directory permissions like 448,384 and 511 may not make a good sense
for a user. Either a decoded value or mentioning it in docs would be great.
Displaying the value consistent with "setting" column is most desirable from
a user perspective.
Thank you,
Jobin.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | PG Bug reporting form | 2026-06-30 07:37:00 | BUG #19541: Postgresql failed to run 150+ tests on both debug and release configurations with VS 2026 on Windows |
| Previous Message | Tom Lane | 2026-06-30 02:27:05 | Re: BUG #17502: View based on window functions returns wrong results when queried |