Slim down integer formatting

From: David Fetter <david(at)fetter(dot)org>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Slim down integer formatting
Date: 2021-07-26 23:51:30
Message-ID: 20210726235130.GK18391@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Folks,

Please find attached a patch to do $subject. It's down to a one table
lookup and 3 instructions.

In covering the int64 versions, I swiped a light weight division from
the Ryu stuff. I'm pretty sure that what I did is not how to do
#includes, but it's a PoC. What would be a better way to do this?

Best,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

Attachment Content-Type Size
v1-0001-PoC-Slim-down-integer-printing-some-more.patch text/x-diff 3.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-07-26 23:53:52 Re: Some code cleanup for pgbench and pg_verifybackup
Previous Message Greg Nancarrow 2021-07-26 23:41:46 Re: Added schema level support for publication.