pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Junwang Zhao <zhjwpku@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Non-decimal integer literals
Date: Tue, 11 Oct 2022 10:59:30 +0200
Message-ID: <51dacd4a-3556-aa60-8d74-9d6b078fd97e@enterprisedb.com> (raw )
In-Reply-To: <CAEG8a3Lj1K_-JnyzUEXckq58dzEWi-tzLdz_5bOdNDRnaViqiw@mail.gmail.com >
References: <b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com >
<CALNJ-vTmD7DGr9VU1x-Rt9GVJowQeX9t44CDhZJE=EUnp+7FeQ@mail.gmail.com >
<CAFBsxsEt_CFGk1vBEn=arrDKMFfdryjDHnNvFzpkhh+MktGNKA@mail.gmail.com >
<0f37d2ec-6689-4d23-7ba5-4d2a73c2666f@enterprisedb.com >
<577603ec-787b-61b8-23a2-1bd0457ed1c7@enterprisedb.com >
<be7fb835-abf9-2f5a-de5d-ad946a7d42e1@enterprisedb.com >
<c42cb38a-ac42-dd92-2935-dce3b9806e26@enterprisedb.com >
<CA+TgmoZv2Q11P1JbF+ziu1b8vsBpcjfPqXsHMR0hJqSTeLP1xQ@mail.gmail.com >
<bef9c869-e773-f792-fde2-d7555add2879@enterprisedb.com >
<CA+TgmoZRJzBe6yKeBpQ2auHndeV-bzygSY=gr0A0KixZ2giKNg@mail.gmail.com >
<2317133.1643155358@sss.pgh.pa.us >
<97aa22d7-b80f-efa1-f368-3dbf73a15980@enterprisedb.com >
<CAFBsxsGcgqJ_KO-1=jCUJKK2z5rCh2qsf7=VgNWzTvakLMDyBQ@mail.gmail.com >
<bc462aff-675b-86e2-46e3-7eaf5ce3e75f@enterprisedb.com >
<071c40f2-15cf-5db3-8799-dbac041bb881@enterprisedb.com >
<CAEG8a3Lj1K_-JnyzUEXckq58dzEWi-tzLdz_5bOdNDRnaViqiw@mail.gmail.com >
On 11.10.22 05:29, Junwang Zhao wrote:
> What do you think if we move these code into a static inline function? like:
>
> static inline char*
> process_digits(char *ptr, int32 *result)
> {
> ...
> }
How would you handle the different ways each branch checks for valid
digits and computes the value of each digit?
view thread (62+ messages) latest in thread
Message-ID: <51dacd4a-3556-aa60-8d74-9d6b078fd97e@enterprisedb.com>
Permalink: ../51dacd4a-3556-aa60-8d74-9d6b078fd97e@enterprisedb.com/
Also on: postgresql.org/message-id/51dacd4a-3556-aa60-8d74-9d6b078fd97e@enterprisedb.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: peter.eisentraut@enterprisedb.com, zhjwpku@gmail.com
Subject: Re: Non-decimal integer literals
In-Reply-To: <51dacd4a-3556-aa60-8d74-9d6b078fd97e@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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