summaryrefslogtreecommitdiff
path: root/src/include/utils/uuid.h
diff options
context:
space:
mode:
authorTom Lane2016-11-29 19:08:23 +0000
committerTom Lane2016-11-29 19:08:34 +0000
commit11da83a0e70d32ed0e06a5c948cd8343f8ad5102 (patch)
tree949194d8fd784ca8741f191fa253b484a9dd7e8c /src/include/utils/uuid.h
parent721f7bd3cbccaf8c07cad2707826b83f84694832 (diff)
Add uuid to the set of types supported by contrib/btree_gist.
Paul Jungwirth, reviewed and hacked on by Teodor Sigaev, Ildus Kurbangaliev, Adam Brusselback, Chris Bandy, and myself. Discussion: https://postgr.es/m/CA+renyUEE29=X01JXdz8_TQvo6n9=2XoEBBRnQ8rkLyr+kjPxQ@mail.gmail.com Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/include/utils/uuid.h')
-rw-r--r--src/include/utils/uuid.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/utils/uuid.h b/src/include/utils/uuid.h
index 897382f2e5d..c6766805e05 100644
--- a/src/include/utils/uuid.h
+++ b/src/include/utils/uuid.h
@@ -14,11 +14,13 @@
#ifndef UUID_H
#define UUID_H
-/* guid size in bytes */
+/* uuid size in bytes */
#define UUID_LEN 16
-/* opaque struct; defined in uuid.c */
-typedef struct pg_uuid_t pg_uuid_t;
+typedef struct pg_uuid_t
+{
+ unsigned char data[UUID_LEN];
+} pg_uuid_t;
/* fmgr interface macros */
#define UUIDPGetDatum(X) PointerGetDatum(X)