PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "common/hashfn.h"
#include "utils/float.h"
#include "utils/fmgrprotos.h"
#include "utils/pg_locale.h"
#include "varatt.h"
Go to the source code of this file.
Datum hashbytea | ( | PG_FUNCTION_ARGS | ) |
Datum hashbyteaextended | ( | PG_FUNCTION_ARGS | ) |
Datum hashchar | ( | PG_FUNCTION_ARGS | ) |
Datum hashcharextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 53 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 134 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_INT64, and PG_GETARG_OID.
Datum hashfloat4 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 140 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 176 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 193 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 217 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 65 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 77 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_INT32, and PG_GETARG_INT64.
Datum hashint8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 83 of file hashfunc.c.
References hash_uint32(), PG_GETARG_INT64, and val.
Referenced by hashxid8(), interval_hash(), pg_lsn_hash(), time_hash(), timestamp_hash(), timestamptz_hash(), and timetz_hash().
Datum hashint8extended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 103 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_INT64, and val.
Referenced by hashxid8extended(), interval_hash_extended(), pg_lsn_hash_extended(), time_hash_extended(), timestamp_hash_extended(), timestamptz_hash_extended(), and timetz_hash_extended().
Datum hashname | ( | PG_FUNCTION_ARGS | ) |
Definition at line 250 of file hashfunc.c.
References hash_any(), sort-test::key, NameStr, and PG_GETARG_NAME.
Datum hashnameextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 258 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 116 of file hashfunc.c.
References hash_uint32(), and PG_GETARG_OID.
Datum hashoidextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 122 of file hashfunc.c.
References hash_uint32_extended(), PG_GETARG_INT64, and PG_GETARG_OID.
Datum hashoidvector | ( | PG_FUNCTION_ARGS | ) |
Definition at line 232 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 240 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 267 of file hashfunc.c.
References buf, collid, pg_locale_struct::deterministic, elog, ereport, errcode(), errhint(), errmsg(), ERROR, hash_any(), sort-test::key, palloc(), pfree(), PG_FREE_IF_COPY, PG_GET_COLLATION, PG_GETARG_TEXT_PP, pg_newlocale_from_collation(), pg_strnxfrm(), VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Referenced by texthashfast().
Datum hashtextextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 322 of file hashfunc.c.
References buf, collid, pg_locale_struct::deterministic, elog, ereport, errcode(), errhint(), errmsg(), ERROR, hash_any_extended(), sort-test::key, palloc(), pfree(), PG_FREE_IF_COPY, PG_GET_COLLATION, PG_GETARG_INT64, PG_GETARG_TEXT_PP, pg_newlocale_from_collation(), pg_strnxfrm(), VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Datum hashvarlena | ( | PG_FUNCTION_ARGS | ) |
Definition at line 386 of file hashfunc.c.
References hash_any(), sort-test::key, PG_FREE_IF_COPY, PG_GETARG_VARLENA_PP, VARDATA_ANY, and VARSIZE_ANY_EXHDR.
Referenced by hashbytea().
Datum hashvarlenaextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 401 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.
Referenced by hashbyteaextended().