forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcdf37a3
Reject bogus output from uuid_create(3).
When using the BSD UUID functions, contrib/uuid-ossp expectsuuid_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 implementationis 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 librariesand 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.usDiscussion:https://postgr.es/m/17358-89806e7420797025@postgresql.org1 parentfc2edf8 commitcdf37a3
File tree
3 files changed
+14
-2
lines changed- contrib/uuid-ossp
- doc/src/sgml
3 files changed
+14
-2
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
284 | 284 |
| |
285 | 285 |
| |
286 | 286 |
| |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
287 | 299 |
| |
288 | 300 |
| |
289 | 301 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1125 | 1125 |
| |
1126 | 1126 |
| |
1127 | 1127 |
| |
1128 |
| - | |
| 1128 | + | |
1129 | 1129 |
| |
1130 | 1130 |
| |
1131 | 1131 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
217 |
| - | |
| 217 | + | |
218 | 218 |
| |
219 | 219 |
| |
220 | 220 |
| |
|
0 commit comments
Comments
(0)