Re: [PATCH] Speed up repeat() for larger counts

From: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
To: Jan Nidzwetzki <jan(at)planetscale(dot)com>
Cc: ChenhuiMo <chenhuimo(dot)mch(at)qq(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Jeevan Chalke <jeevan(dot)chalke(at)enterprisedb(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Subject: Re: [PATCH] Speed up repeat() for larger counts
Date: 2026-09-25 00:01:21
Message-ID: CAH7T-ap2La6nD0g2BL79UY=_syuVt3gR+hXBHsEaVQHvhFq5Og@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

FYI, the lpad/rpad patch now also uses the same helper for repeat(), so
this overlaps with the work here:

https://www.postgresql.org/message-id/CAH7T-apj%2BpFg9bRkXVGfGejS2Uu4WzdMd7KoLKTW11mdsrt1Ew%40mail.gmail.com

I've credited this thread for the earlier repeat() doubling work and
the discussion around capping the copy size.

Regards,
-- Sehrope Sarkuni
Founder & CEO | JackDB, Inc. | https://www.jackdb.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2026-09-25 01:02:18 Re: potentially missed pgindent in REL_19_STABLE
Previous Message Sehrope Sarkuni 2026-09-24 23:54:21 Re: Speed up lpad() and rpad() for one-byte padding strings