[PATCH] Add function to_oct

From: Eric Radman <ericshane(at)eradman(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] Add function to_oct
Date: 2022-12-20 22:08:13
Message-ID: Y6IyTQQ/TsD5wnsH@vm3.eradman.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
add-function-to_oct.patch text/plain 3.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2022-12-20 22:29:58 Re: pgsql: Doc: Explain about Column List feature.
Previous Message Robert Haas 2022-12-20 21:43:58 Re: appendBinaryStringInfo stuff