Re: pgbench - adding pl/pgsql versions of tests

From: Robert Treat <rob(at)xzilla(dot)net>
To: Hannu Krosing <hannuk(at)google(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgbench - adding pl/pgsql versions of tests
Date: 2025-09-01 13:28:33
Message-ID: CABV9wwP9+shGotYw0t--miae0jBzZoYhYXuTsbB1qPJdY2mdZA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Jul 23, 2025 at 12:18 PM Hannu Krosing <hannuk(at)google(dot)com> wrote:
> On Sun, Jul 6, 2025 at 11:52 PM Hannu Krosing <hannuk(at)google(dot)com> wrote:
> > On Sat, Feb 3, 2024 at 8:54 AM Hannu Krosing <hannuk(at)google(dot)com> wrote:
> > >
> > > My justification for adding pl/pgsql tests as part of the immediately available tests
> > > is that pl/pgsql itself is always enabled, so having a no-effort way to test its
> > > performance benefits would be really helpful.
> > > We also should have "tps-b-like as SQL function" to round up the "test what's available in server" set.
> >
> > Finally got around to adding the tests for all out-of-the box
> > supported languages - pl/pgsql, and old and new SQL.
> >
> > Also added the documentation.

Hey Hannu,

I took the above for a spin and generally it all worked well and I do
think it is a nice addition. Attached v4 patch basically combines v3
01 and 02 patches into one (you need both or the build fails on the
docs, so...), along with the following changes:
- whitespace and typo fixes in pgbench.c
- wordsmithing the caution notification, clean up --no-functions doc
- document the new Yy options alongside other -I options.

On that last item, I did notice that there is a potential backwards
compatibility issue, which is that existing scripts that are reliant
on functions existing will need to be updated to include "y", but that
feels pretty niche, so I am not personally worried about it.

Robert Treat
https://xzilla.net

Attachment Content-Type Size
v4-0001-added-new-and-old-style-SQL-functions-and-documen.patch application/octet-stream 17.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message torikoshia 2025-09-01 13:35:11 Re: RFC: Logging plan of the running query
Previous Message David E. Wheeler 2025-09-01 13:12:20 Re: ABI Compliance Checker GSoC Project