BUG #19540: Inconsistent integer-to-octal formatting for permission GUCs in pg_settings (boot_val vs setting) - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #19540: Inconsistent integer-to-octal formatting for permission GUCs in pg_settings (boot_val vs setting)
Date
Msg-id 19540-e641040b089ab768@postgresql.org
Whole thread
Responses Re: BUG #19540: Inconsistent integer-to-octal formatting for permission GUCs in pg_settings (boot_val vs setting)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      19540
Logged by:          Jobin Augustine
Email address:      jobinau@gmail.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.





pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #17502: View based on window functions returns wrong results when queried
Next
From: PG Bug reporting form
Date:
Subject: BUG #19541: Postgresql failed to run 150+ tests on both debug and release configurations with VS 2026 on Windows