]> granicus.if.org Git - postgresql/commit
Add gen_random_uuid() to contrib/pgcrypto.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Jan 2014 21:52:06 +0000 (16:52 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 17 Jan 2014 21:52:06 +0000 (16:52 -0500)
commite6170126fc201052b0ec5fc92177eb181d602d26
tree37c4660bd45764fa9737967f6e92a88bee19c5fb
parent708c529c7fdeba9387825d746752fc6f439d781e
Add gen_random_uuid() to contrib/pgcrypto.

This function provides a way of generating version 4 (pseudorandom) UUIDs
based on pgcrypto's PRNG.  The main reason for doing this is that the
OSSP UUID library depended on by contrib/uuid-ossp is becoming more and
more of a porting headache, so we need an alternative for people who can't
install that.  A nice side benefit though is that this implementation is
noticeably faster than uuid-ossp's uuid_generate_v4() function.

Oskari Saarenmaa, reviewed by Emre Hasegeli
contrib/pgcrypto/Makefile
contrib/pgcrypto/pgcrypto--1.0--1.1.sql [new file with mode: 0644]
contrib/pgcrypto/pgcrypto--1.1.sql [moved from contrib/pgcrypto/pgcrypto--1.0.sql with 96% similarity]
contrib/pgcrypto/pgcrypto.c
contrib/pgcrypto/pgcrypto.control
contrib/pgcrypto/pgcrypto.h
doc/src/sgml/datatype.sgml
doc/src/sgml/pgcrypto.sgml
doc/src/sgml/uuid-ossp.sgml