[PATCH] Add function to_oct
Eric Radman <ericshane@eradman.com>
From: Eric Radman <ericshane@eradman.com>
To: pgsql-hackers@postgresql.org
Date: 2022-12-20T22:08:13Z
Lists: pgsql-hackers
Attachments
- add-function-to_oct.patch (text/plain) patch
Hello! This patch is a new function based on the implementation of to_hex(int). Since support for octal integer literals was added, to_oct(int) allows octal values to be easily stored and returned in query results. to_oct(0o755) = '755' This is probably most useful for storing file system permissions. -- Eric Radman
Commits
-
Add to_bin() and to_oct().
- 260a1f18dae8 17.0 landed