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) |
Variables | |
PG_MODULE_MAGIC | |
#define dce_uuid_t uuid_t |
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.
#define UUID_TO_LOCAL | ( | uu | ) |
Definition at line 88 of file uuid-ossp.c.
#define UUID_TO_NETWORK | ( | uu | ) |
Definition at line 81 of file uuid-ossp.c.
#define UUID_V3_OR_V5 | ( | uu, | |
v | |||
) |
Definition at line 95 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 | ) |
|
static |
Definition at line 249 of file uuid-ossp.c.
References CStringGetDatum(), dce_uuid_t, DirectFunctionCall1, elog, ereport, errcode(), errmsg(), ERROR, 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 481 of file uuid-ossp.c.
References uuid_generate_internal(), and UUID_MAKE_V1.
Datum uuid_generate_v1mc | ( | PG_FUNCTION_ARGS | ) |
Definition at line 488 of file uuid-ossp.c.
References buf, dce_uuid_t, snprintf, uuid_generate_internal(), UUID_MAKE_MC, and UUID_MAKE_V1.
Datum uuid_generate_v3 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 519 of file uuid-ossp.c.
References 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 534 of file uuid-ossp.c.
References uuid_generate_internal(), and UUID_MAKE_V4.
Datum uuid_generate_v5 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 541 of file uuid-ossp.c.
References 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 421 of file uuid-ossp.c.
References uuid_generate_internal().
Datum uuid_ns_dns | ( | PG_FUNCTION_ARGS | ) |
Definition at line 433 of file uuid-ossp.c.
References uuid_generate_internal().
Datum uuid_ns_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 457 of file uuid-ossp.c.
References uuid_generate_internal().
Datum uuid_ns_url | ( | PG_FUNCTION_ARGS | ) |
Definition at line 445 of file uuid-ossp.c.
References uuid_generate_internal().
Datum uuid_ns_x500 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 469 of file uuid-ossp.c.
References uuid_generate_internal().
PG_MODULE_MAGIC |
Definition at line 105 of file uuid-ossp.c.