PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/hash.h"
#include "catalog/pg_collation.h"
#include "common/hashfn.h"
#include "utils/builtins.h"
#include "utils/float.h"
#include "utils/pg_locale.h"
#include "varatt.h"
Go to the source code of this file.
Datum hashchar | ( | PG_FUNCTION_ARGS | ) |
Datum hashcharextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 55 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_CHAR, and PG_GETARG_INT64.
Referenced by JsonbHashScalarValueExtended().
Datum hashenum | ( | PG_FUNCTION_ARGS | ) |
Datum hashenumextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 136 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_INT64, and PG_GETARG_OID.
Datum hashfloat4 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 142 of file hashfunc.c.
References get_float8_nan(), hash_any(), sort-test::key, PG_GETARG_FLOAT4, and PG_RETURN_UINT32.
Datum hashfloat4extended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 178 of file hashfunc.c.
References get_float8_nan(), hash_any_extended(), sort-test::key, PG_GETARG_FLOAT4, PG_GETARG_INT64, and PG_RETURN_UINT64.
Datum hashfloat8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 195 of file hashfunc.c.
References get_float8_nan(), hash_any(), sort-test::key, PG_GETARG_FLOAT8, and PG_RETURN_UINT32.
Referenced by tablesample_init().
Datum hashfloat8extended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 219 of file hashfunc.c.
References get_float8_nan(), hash_any_extended(), sort-test::key, PG_GETARG_FLOAT8, PG_GETARG_INT64, and PG_RETURN_UINT64.
Datum hashint2 | ( | PG_FUNCTION_ARGS | ) |
Datum hashint2extended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 67 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_INT16, and PG_GETARG_INT64.
Datum hashint4 | ( | PG_FUNCTION_ARGS | ) |
Datum hashint4extended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 79 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_INT32, and PG_GETARG_INT64.
Datum hashint8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 85 of file hashfunc.c.
References hash_uint32(), PG_GETARG_INT64, and val.
Referenced by interval_hash(), pg_lsn_hash(), time_hash(), timestamp_hash(), and timetz_hash().
Datum hashint8extended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 105 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_INT64, and val.
Referenced by interval_hash_extended(), pg_lsn_hash_extended(), time_hash_extended(), timestamp_hash_extended(), and timetz_hash_extended().
Datum hashname | ( | PG_FUNCTION_ARGS | ) |
Definition at line 252 of file hashfunc.c.
References hash_any(), sort-test::key, NameStr, and PG_GETARG_NAME.
Datum hashnameextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 260 of file hashfunc.c.
References hash_any_extended(), sort-test::key, NameStr, PG_GETARG_INT64, and PG_GETARG_NAME.
Datum hashoid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 118 of file hashfunc.c.
References hash_uint32(), and PG_GETARG_OID.
Datum hashoidextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 124 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_INT64, and PG_GETARG_OID.
Datum hashoidvector | ( | PG_FUNCTION_ARGS | ) |
Definition at line 234 of file hashfunc.c.
References hash_any(), sort-test::key, and PG_GETARG_POINTER.
Referenced by oidvectorhashfast().
Datum hashoidvectorextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 242 of file hashfunc.c.
References hash_any_extended(), sort-test::key, PG_GETARG_INT64, and PG_GETARG_POINTER.
Datum hashtext | ( | PG_FUNCTION_ARGS | ) |
Definition at line 269 of file hashfunc.c.
References buf, collid, elog(), ereport, errcode(), errhint(), errmsg(), ERROR, hash_any(), sort-test::key, lc_collate_is_c(), palloc(), pfree(), PG_FREE_IF_COPY, PG_GET_COLLATION, PG_GETARG_TEXT_PP, pg_locale_deterministic(), pg_newlocale_from_collation(), pg_strnxfrm(), VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Referenced by texthashfast().
Datum hashtextextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 323 of file hashfunc.c.
References buf, collid, elog(), ereport, errcode(), errhint(), errmsg(), ERROR, hash_any_extended(), sort-test::key, lc_collate_is_c(), palloc(), pfree(), PG_FREE_IF_COPY, PG_GET_COLLATION, PG_GETARG_INT64, PG_GETARG_TEXT_PP, pg_locale_deterministic(), pg_newlocale_from_collation(), pg_strnxfrm(), VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum hashvarlena | ( | PG_FUNCTION_ARGS | ) |
Definition at line 381 of file hashfunc.c.
References hash_any(), sort-test::key, PG_FREE_IF_COPY, PG_GETARG_VARLENA_PP, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum hashvarlenaextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 396 of file hashfunc.c.
References hash_any_extended(), sort-test::key, PG_FREE_IF_COPY, PG_GETARG_INT64, PG_GETARG_VARLENA_PP, VARDATA_ANY, and VARSIZE_ANY_EXHDR.