|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "common/cryptohash.h"#include "common/sha1.h"#include "fmgr.h"#include "port/pg_bswap.h"#include "utils/builtins.h"#include "utils/uuid.h"#include "varatt.h"
Go to the source code of this file.
Macros | |
| #define | uuid_hash bsd_uuid_hash |
| #define | UUID_MAKE_MC 0 |
| #define | UUID_MAKE_V1 1 |
| #define | UUID_MAKE_V2 2 |
| #define | UUID_MAKE_V3 3 |
| #define | UUID_MAKE_V4 4 |
| #define | UUID_MAKE_V5 5 |
| #define | dce_uuid_t uuid_t |
| #define | UUID_TO_NETWORK(uu) |
| #define | UUID_TO_LOCAL(uu) |
| #define | UUID_V3_OR_V5(uu, v) |
Definition at line 75 of file uuid-ossp.c.
| #define uuid_hash bsd_uuid_hash |
Definition at line 31 of file uuid-ossp.c.
| #define UUID_MAKE_MC 0 |
Definition at line 52 of file uuid-ossp.c.
| #define UUID_MAKE_V1 1 |
Definition at line 53 of file uuid-ossp.c.
| #define UUID_MAKE_V2 2 |
Definition at line 54 of file uuid-ossp.c.
| #define UUID_MAKE_V3 3 |
Definition at line 55 of file uuid-ossp.c.
| #define UUID_MAKE_V4 4 |
Definition at line 56 of file uuid-ossp.c.
| #define UUID_MAKE_V5 5 |
Definition at line 57 of file uuid-ossp.c.
Definition at line 88 of file uuid-ossp.c.
Definition at line 81 of file uuid-ossp.c.
| PG_FUNCTION_INFO_V1 | ( | uuid_generate_v1 | ) |
| PG_FUNCTION_INFO_V1 | ( | uuid_generate_v1mc | ) |
| PG_FUNCTION_INFO_V1 | ( | uuid_generate_v3 | ) |
| PG_FUNCTION_INFO_V1 | ( | uuid_generate_v4 | ) |
| PG_FUNCTION_INFO_V1 | ( | uuid_generate_v5 | ) |
| PG_FUNCTION_INFO_V1 | ( | uuid_nil | ) |
| PG_FUNCTION_INFO_V1 | ( | uuid_ns_dns | ) |
| PG_FUNCTION_INFO_V1 | ( | uuid_ns_oid | ) |
| PG_FUNCTION_INFO_V1 | ( | uuid_ns_url | ) |
| PG_FUNCTION_INFO_V1 | ( | uuid_ns_x500 | ) |
| PG_MODULE_MAGIC_EXT | ( | . | name = "uuid-ossp", |
| . | version = PG_VERSION |
||
| ) |
Definition at line 252 of file uuid-ossp.c.
References CStringGetDatum(), dce_uuid_t, DirectFunctionCall1, elog, ereport, errcode(), errmsg(), ERROR, fb(), free, len, pg_cryptohash_create(), pg_cryptohash_error(), pg_cryptohash_final(), pg_cryptohash_free(), pg_cryptohash_init(), pg_cryptohash_update(), PG_MD5, PG_SHA1, SHA1_DIGEST_LENGTH, snprintf, str, strlcpy(), uuid_in(), UUID_TO_LOCAL, UUID_TO_NETWORK, and UUID_V3_OR_V5.
Referenced by uuid_generate_v1(), uuid_generate_v1mc(), uuid_generate_v3(), uuid_generate_v4(), uuid_generate_v5(), uuid_nil(), uuid_ns_dns(), uuid_ns_oid(), uuid_ns_url(), and uuid_ns_x500().
| Datum uuid_generate_v1 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 484 of file uuid-ossp.c.
References fb(), uuid_generate_internal(), and UUID_MAKE_V1.
| Datum uuid_generate_v1mc | ( | PG_FUNCTION_ARGS | ) |
Definition at line 491 of file uuid-ossp.c.
References buf, dce_uuid_t, fb(), snprintf, uuid_generate_internal(), UUID_MAKE_MC, and UUID_MAKE_V1.
| Datum uuid_generate_v3 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 522 of file uuid-ossp.c.
References fb(), name, PG_GETARG_TEXT_PP, PG_GETARG_UUID_P, uuid_generate_internal(), UUID_MAKE_V3, VARDATA_ANY(), and VARSIZE_ANY_EXHDR().
| Datum uuid_generate_v4 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 537 of file uuid-ossp.c.
References fb(), uuid_generate_internal(), and UUID_MAKE_V4.
| Datum uuid_generate_v5 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 544 of file uuid-ossp.c.
References fb(), name, PG_GETARG_TEXT_PP, PG_GETARG_UUID_P, uuid_generate_internal(), UUID_MAKE_V5, VARDATA_ANY(), and VARSIZE_ANY_EXHDR().
| Datum uuid_nil | ( | PG_FUNCTION_ARGS | ) |
Definition at line 424 of file uuid-ossp.c.
References fb(), and uuid_generate_internal().
| Datum uuid_ns_dns | ( | PG_FUNCTION_ARGS | ) |
Definition at line 436 of file uuid-ossp.c.
References fb(), and uuid_generate_internal().
| Datum uuid_ns_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 460 of file uuid-ossp.c.
References fb(), and uuid_generate_internal().
| Datum uuid_ns_url | ( | PG_FUNCTION_ARGS | ) |
Definition at line 448 of file uuid-ossp.c.
References fb(), and uuid_generate_internal().
| Datum uuid_ns_x500 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 472 of file uuid-ossp.c.
References fb(), and uuid_generate_internal().