Format base - Code contribution

From: Miles Elam <mileselam(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Format base - Code contribution
Date: 2018-04-23 00:23:42
Message-ID: CAPVvHdNDttbpV9nAq-CPx+Ai7mEmHcagAC=DJ405sQp=zr3+NQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I would like to donate some code to the project, formatting numbers as any
base from 2 to 64. The FAQ describes contributions to the core code, but
it's possible contrib is a better target. This is all of course contingent
on how well received this extension code is of course. Code available at
the following link.

https://github.com/ttfkam/pg_formatbase

I believe it follows the PostgreSQL project's C code formatting guidelines
and includes tests. Preliminary checks show it to be about as efficient as
the built in hex formatting only it supports the full gamut of number
formatting: binary, ternary, octal, hex, base 36 (popular with Javascript),
etc. I was scratching a personal itch, but hopefully this can scratch
others' as well.

Cheers,

Miles Elam
--
Quidquid latine dictum sit, altum sonatur.
- Whatever is said in Latin sounds profound.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2018-04-23 01:04:11 Re: [HACKERS] path toward faster partition pruning
Previous Message Andrew Gierth 2018-04-22 23:59:38 Re: Toast issues with OldestXmin going backwards