Re: [oauth] Increased CPU usage during device flow with libcurl 8.20.0 - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: [oauth] Increased CPU usage during device flow with libcurl 8.20.0
Date
Msg-id CAOYmi+=kP86t+ZFFXNQ9G6K4ht7utdmB=CzhP=Z2wvuBymOTtQ@mail.gmail.com
Whole thread
List pgsql-hackers
On Mon, Jun 15, 2026 at 12:47 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Jacob Champion <jacob.champion@enterprisedb.com> writes:
> > So that just leaves what to do about the current test failures. My
> > current idea is to just skip the test if the curl binary reports that
> > specific minor version.
>
> Seems like a good solution.  We don't know how long such curl
> binaries will persist in the wild.

Cool. Unfortunately, I immediately ran into an obvious-in-retrospect
problem: the Homebrew libcurl we're linked against is not what you see
when you type `curl --version` at the command line, and I don't think
we record the runtime version of libcurl anywhere today. I've attached
a solution that should work well for PG20, but I don't feel as good
about it for 19 (or a backport to 18).

I need to switch to a different context for today, but tomorrow I'll
try to find a solution that touches only the test code.

Thanks,
--Jacob

Attachment

pgsql-hackers by date:

Previous
From: Sami Imseih
Date:
Subject: Re: [PATCH] COPY TO FORMAT json: respect column list order
Next
From: Jacob Champion
Date:
Subject: Re: Heads Up: cirrus-ci is shutting down June 1st