From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Add gen_random_uuid() to contrib/pgcrypto. |
Date: | 2014-01-17 21:52:23 |
Message-ID: | E1W4HKx-0003L9-OZ@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/e6170126fc201052b0ec5fc92177eb181d602d26
Modified Files
--------------
contrib/pgcrypto/Makefile | 2 +-
contrib/pgcrypto/pgcrypto--1.0--1.1.sql | 9 ++
contrib/pgcrypto/pgcrypto--1.0.sql | 202 ------------------------------
contrib/pgcrypto/pgcrypto--1.1.sql | 207 +++++++++++++++++++++++++++++++
contrib/pgcrypto/pgcrypto.c | 27 ++++
contrib/pgcrypto/pgcrypto.control | 2 +-
contrib/pgcrypto/pgcrypto.h | 1 +
doc/src/sgml/datatype.sgml | 2 +
doc/src/sgml/pgcrypto.sgml | 11 ++
doc/src/sgml/uuid-ossp.sgml | 9 ++
10 files changed, 268 insertions(+), 204 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-01-18 01:58:38 | pgsql: Minor code beautification in contrib/sslinfo. |
Previous Message | Andrew Dunstan | 2014-01-17 17:49:47 | pgsql: Export set_latch_on_sigusr1 symbol for Windows. |