pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add to_bin() and to_oct().
2+ messages / 2 participants
[nested] [flat]

* pgsql: Add to_bin() and to_oct().
@ 2023-08-23 14:50  Nathan Bossart <nathan@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Nathan Bossart @ 2023-08-23 14:50 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add to_bin() and to_oct().

This commit introduces functions for converting numbers to their
equivalent binary and octal representations.  Also, the base
conversion code for these functions and to_hex() has been moved to
a common helper function.

Co-authored-by: Eric Radman
Reviewed-by: Ian Barwick, Dag Lem, Vignesh C, Tom Lane, Peter Eisentraut, Kirk Wolak, Vik Fearing, John Naylor, Dean Rasheed
Discussion: https://postgr.es/m/Y6IyTQQ/TsD5wnsH%40vm3.eradman.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/260a1f18dae8729f99cefe4e1f759193fd6bedd0

Modified Files
--------------
doc/src/sgml/func.sgml                | 59 +++++++++++++++++++++++-
src/backend/utils/adt/varlena.c       | 86 ++++++++++++++++++++++++-----------
src/include/catalog/pg_proc.dat       | 12 +++++
src/test/regress/expected/strings.out | 62 ++++++++++++++++++++++++-
src/test/regress/sql/strings.sql      | 15 +++++-
5 files changed, 204 insertions(+), 30 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pgsql: Add to_bin() and to_oct().
@ 2023-08-23 20:31  David Rowley <dgrowleyml@gmail.com>
  parent: Nathan Bossart <nathan@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: David Rowley @ 2023-08-23 20:31 UTC (permalink / raw)
  To: Nathan Bossart <nathan@postgresql.org>; +Cc: pgsql-committers@lists.postgresql.org

On Thu, 24 Aug 2023 at 02:50, Nathan Bossart <nathan@postgresql.org> wrote:
>
> Add to_bin() and to_oct().

 src/include/catalog/pg_proc.dat       | 12 +++++

Did this maybe miss a catversion bump?

David





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2023-08-23 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-08-23 14:50 pgsql: Add to_bin() and to_oct(). Nathan Bossart <nathan@postgresql.org>
2023-08-23 20:31 ` David Rowley <dgrowleyml@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox