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
Showing
- contrib/pgcrypto/Makefile 1 addition, 1 deletioncontrib/pgcrypto/Makefile
- contrib/pgcrypto/pgcrypto--1.0--1.1.sql 9 additions, 0 deletionscontrib/pgcrypto/pgcrypto--1.0--1.1.sql
- contrib/pgcrypto/pgcrypto--1.1.sql 6 additions, 1 deletioncontrib/pgcrypto/pgcrypto--1.1.sql
- contrib/pgcrypto/pgcrypto.c 27 additions, 0 deletionscontrib/pgcrypto/pgcrypto.c
- contrib/pgcrypto/pgcrypto.control 1 addition, 1 deletioncontrib/pgcrypto/pgcrypto.control
- contrib/pgcrypto/pgcrypto.h 1 addition, 0 deletionscontrib/pgcrypto/pgcrypto.h
- doc/src/sgml/datatype.sgml 2 additions, 0 deletionsdoc/src/sgml/datatype.sgml
- doc/src/sgml/pgcrypto.sgml 11 additions, 0 deletionsdoc/src/sgml/pgcrypto.sgml
- doc/src/sgml/uuid-ossp.sgml 9 additions, 0 deletionsdoc/src/sgml/uuid-ossp.sgml
Loading
Please register or sign in to comment