pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: David Rowley <dgrowleyml@gmail.com>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Cc: Andres Freund <andres@anarazel.de>
Subject: Re: Speedup usages of pg_*toa() functions
Date: Thu, 11 Jun 2020 07:52:51 +0100
Message-ID: <87y2ou3xuh.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CAApHDvp04HAxSfi3MZUp2kYsiOjhbv-d3kZorS1v_Wj0uHwv8w@mail.gmail.com>
References: <CAApHDvrm2A5x2uHYxsqriO2cUaGcFvND+ksC9e7Tjep0t2RK_A@mail.gmail.com>
	<87lfkw7eao.fsf@news-spur.riddles.org.uk>
	<CAApHDvopR=yPgNr4AbbN4HMOztuyVa+iFYRTvu49pxg9YO_tKw@mail.gmail.com>
	<CAApHDvp04HAxSfi3MZUp2kYsiOjhbv-d3kZorS1v_Wj0uHwv8w@mail.gmail.com>

>>>>> "David" == David Rowley <dgrowleyml@gmail.com> writes:

 David> Pending any objections, I'd like to push both of these patches
 David> in the next few days to master.

For the second patch, can we take the opportunity to remove the
extraneous blank line at the top of pg_ltoa, and add the two missing
"extern"s in builtins.h for pg_ultoa_n and pg_ulltoa_n ?

 David> Anyone object to changing the signature of these functions in
 David> 0002, or have concerns about allocating the maximum memory that
 David> we might require in int8out()?

Changing the function signatures seems safe enough. The memory thing
only seems likely to be an issue if you allocate a lot of text strings
for bigint values without a context reset, and I'm not sure where that
would happen (maybe passing large bigint arrays to pl/perl or pl/python
would do it?)

-- 
Andrew (irc:RhodiumToad)





view thread (19+ messages)  latest in thread

Message-ID: <87y2ou3xuh.fsf@news-spur.riddles.org.uk>
Permalink:  ../87y2ou3xuh.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87y2ou3xuh.fsf@news-spur.riddles.org.uk

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, dgrowleyml@gmail.com, andres@anarazel.de
  Subject: Re: Speedup usages of pg_*toa() functions
  In-Reply-To: <87y2ou3xuh.fsf@news-spur.riddles.org.uk>
  References: <CAApHDvrm2A5x2uHYxsqriO2cUaGcFvND+ksC9e7Tjep0t2RK_A@mail.gmail.com> <87lfkw7eao.fsf@news-spur.riddles.org.uk> <CAApHDvopR=yPgNr4AbbN4HMOztuyVa+iFYRTvu49pxg9YO_tKw@mail.gmail.com> <CAApHDvp04HAxSfi3MZUp2kYsiOjhbv-d3kZorS1v_Wj0uHwv8w@mail.gmail.com> <87y2ou3xuh.fsf@news-spur.riddles.org.uk>

* 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