summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-09-09 12:41:36 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-09-09 12:41:36 -0400
commite55ccb3b179cbfc5b436339cf1a71d21a73c79dc (patch)
tree1c6bda944405280e2791b398f9fb2ad331856dde /doc/src
parent640c20d6266ddc89e7969c697681d3f869f92dfb (diff)
Reject bogus output from uuid_create(3).
When using the BSD UUID functions, contrib/uuid-ossp expects uuid_create() to produce a version-1 UUID. FreeBSD still does so, but in recent NetBSD releases that function produces a version-4 (random) UUID instead. That's not acceptable for our purposes: if the user wanted v4 she would have asked for v4, not v1. Hence, check the version digit and complain if it's not '1'. Also drop the documentation's claim that the NetBSD implementation is usable. It might be, depending on which OS version you're using, but we're not going to get into that kind of detail. (Maybe someday we should ditch all these external libraries and just write our own UUID code, but today is not that day.) Nazir Bilal Yavuz, with cosmetic adjustments and docs by me. Backpatch to all supported versions. Discussion: https://postgr.es/m/3848059.1661038772@sss.pgh.pa.us Discussion: https://postgr.es/m/17358-89806e7420797025@postgresql.org
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/installation.sgml2
-rw-r--r--doc/src/sgml/uuid-ossp.sgml2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml
index 3b0b55fa096..2af43744550 100644
--- a/doc/src/sgml/installation.sgml
+++ b/doc/src/sgml/installation.sgml
@@ -1118,7 +1118,7 @@ build-postgresql:
<itemizedlist>
<listitem>
<para>
- <option>bsd</option> to use the UUID functions found in FreeBSD, NetBSD,
+ <option>bsd</option> to use the UUID functions found in FreeBSD
and some other BSD-derived systems
</para>
</listitem>
diff --git a/doc/src/sgml/uuid-ossp.sgml b/doc/src/sgml/uuid-ossp.sgml
index 359d3c01289..26bfb908dae 100644
--- a/doc/src/sgml/uuid-ossp.sgml
+++ b/doc/src/sgml/uuid-ossp.sgml
@@ -214,7 +214,7 @@ SELECT uuid_generate_v3(uuid_ns_url(), 'http://www.postgresql.org');
at <ulink url="http://www.ossp.org/pkg/lib/uuid/"></ulink>, it is not well
maintained, and is becoming increasingly difficult to port to newer
platforms. <filename>uuid-ossp</filename> can now be built without the OSSP
- library on some platforms. On FreeBSD, NetBSD, and some other BSD-derived
+ library on some platforms. On FreeBSD and some other BSD-derived
platforms, suitable UUID creation functions are included in the
core <filename>libc</filename> library. On Linux, macOS, and some other
platforms, suitable functions are provided in the <filename>libuuid</filename>