Re: Has gen_random_uuid() gotten much slower in v17? - Mailing list pgsql-performance

From David Mullineux
Subject Re: Has gen_random_uuid() gotten much slower in v17?
Date
Msg-id CAGsyd8VBW+zwYuLEiJ3JC5NCFveumUiwhJQoS_-zvhnyfARcbQ@mail.gmail.com
Whole thread Raw
In response to Re: Has gen_random_uuid() gotten much slower in v17?  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-performance
Good idea. Thanks.    I did check. It's not enabled by default but just in case I did another build. This time explicitly defining --disable-debug and --disable-cassert. And I tested. Still slower than old versions. 

This feels like a build configuration problem. Just can't put my finger on it yet.

On Wed, 11 Sept 2024, 10:40 Peter Eisentraut, <peter@eisentraut.org> wrote:
On 10.09.24 15:58, David Mullineux wrote:
> I'm getting a bit concerned by the slow performance of generating uidds
> on latest dev code versus older versions. Here I compare the time to
> generate 50k random uuids. Both son the same machine.
> I must be missing something.

Are you sure that the 18devel installation isn't compiled with
assertions enabled?

The underlying code for gen_random_uuid() is virtually unchanged between
PG14 and current.

pgsql-performance by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Has gen_random_uuid() gotten much slower in v17?
Next
From: Marcelo Zabani
Date:
Subject: Re: Partition pruning with array-contains check and current_setting function