configure --with-uuid=bsd fails on NetBSD - Mailing list pgsql-hackers

From Tom Lane
Subject configure --with-uuid=bsd fails on NetBSD
Date
Msg-id 3848059.1661038772@sss.pgh.pa.us
Whole thread Raw
Responses Re: configure --with-uuid=bsd fails on NetBSD
List pgsql-hackers
Our documentation claims that --with-uuid=bsd works on both
FreeBSD and NetBSD: installation.sgml says

           <option>bsd</option> to use the UUID functions found in FreeBSD, NetBSD,
           and some other BSD-derived systems

and there is comparable wording in uuid-ossp.sgml.

In the course of setting up a NetBSD buildfarm animal, I discovered
that this is a lie.  NetBSD indeed has the same uuid_create() function
as FreeBSD, but it produces version-4 UUIDs not version-1, which causes
the contrib/uuid-ossp regression tests to fail.  You have to dig down
a level to the respective uuidgen(2) man pages to find documentation
about this, but each system appears to be conforming to its docs,
and the old DCE standard they both refer to conveniently omits saying
anything about what kind of UUID you get.  So this isn't a bug as
far as either BSD is concerned.

I'm not personally inclined to do anything about this; I'm certainly
not excited enough about it to write our own v1-UUID creation code.
Perhaps we should just document that on NetBSD, uuid_generate_v1()
and uuid_generate_v1mc() don't conform to spec.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Instrumented pages/tuples frozen in autovacuum's server log out (and VACUUM VERBOSE)
Next
From: Andres Freund
Date:
Subject: Re: [RFC] building postgres with meson