PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.h>
#include "common/hashfn.h"
#include "libpq/pqformat.h"
#include "utils/builtins.h"
Go to the source code of this file.
Data Structures | |
struct | BoolAggState |
Typedefs | |
typedef struct BoolAggState | BoolAggState |
Functions | |
bool | parse_bool (const char *value, bool *result) |
bool | parse_bool_with_len (const char *value, size_t len, bool *result) |
Datum | boolin (PG_FUNCTION_ARGS) |
Datum | boolout (PG_FUNCTION_ARGS) |
Datum | boolrecv (PG_FUNCTION_ARGS) |
Datum | boolsend (PG_FUNCTION_ARGS) |
Datum | booltext (PG_FUNCTION_ARGS) |
Datum | booleq (PG_FUNCTION_ARGS) |
Datum | boolne (PG_FUNCTION_ARGS) |
Datum | boollt (PG_FUNCTION_ARGS) |
Datum | boolgt (PG_FUNCTION_ARGS) |
Datum | boolle (PG_FUNCTION_ARGS) |
Datum | boolge (PG_FUNCTION_ARGS) |
Datum | hashbool (PG_FUNCTION_ARGS) |
Datum | hashboolextended (PG_FUNCTION_ARGS) |
Datum | booland_statefunc (PG_FUNCTION_ARGS) |
Datum | boolor_statefunc (PG_FUNCTION_ARGS) |
static BoolAggState * | makeBoolAggState (FunctionCallInfo fcinfo) |
Datum | bool_accum (PG_FUNCTION_ARGS) |
Datum | bool_accum_inv (PG_FUNCTION_ARGS) |
Datum | bool_alltrue (PG_FUNCTION_ARGS) |
Datum | bool_anytrue (PG_FUNCTION_ARGS) |
typedef struct BoolAggState BoolAggState |
Datum bool_accum | ( | PG_FUNCTION_ARGS | ) |
Definition at line 341 of file bool.c.
References makeBoolAggState(), PG_ARGISNULL, PG_GETARG_BOOL, PG_GETARG_POINTER, and PG_RETURN_POINTER.
Datum bool_accum_inv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 362 of file bool.c.
References elog, ERROR, PG_ARGISNULL, PG_GETARG_BOOL, PG_GETARG_POINTER, and PG_RETURN_POINTER.
Datum bool_alltrue | ( | PG_FUNCTION_ARGS | ) |
Definition at line 383 of file bool.c.
References PG_ARGISNULL, PG_GETARG_POINTER, PG_RETURN_BOOL, and PG_RETURN_NULL.
Datum bool_anytrue | ( | PG_FUNCTION_ARGS | ) |
Definition at line 398 of file bool.c.
References PG_ARGISNULL, PG_GETARG_POINTER, PG_RETURN_BOOL, and PG_RETURN_NULL.
Datum booland_statefunc | ( | PG_FUNCTION_ARGS | ) |
Definition at line 300 of file bool.c.
References PG_GETARG_BOOL, and PG_RETURN_BOOL.
Datum booleq | ( | PG_FUNCTION_ARGS | ) |
Datum boolge | ( | PG_FUNCTION_ARGS | ) |
Datum boolgt | ( | PG_FUNCTION_ARGS | ) |
Datum boolin | ( | PG_FUNCTION_ARGS | ) |
Definition at line 127 of file bool.c.
References ereturn, errcode(), errmsg(), len, parse_bool_with_len(), PG_GETARG_CSTRING, PG_RETURN_BOOL, and str.
Datum boolle | ( | PG_FUNCTION_ARGS | ) |
Datum boollt | ( | PG_FUNCTION_ARGS | ) |
Datum boolne | ( | PG_FUNCTION_ARGS | ) |
Datum boolor_statefunc | ( | PG_FUNCTION_ARGS | ) |
Definition at line 312 of file bool.c.
References PG_GETARG_BOOL, and PG_RETURN_BOOL.
Datum boolout | ( | PG_FUNCTION_ARGS | ) |
Definition at line 158 of file bool.c.
References b, palloc(), PG_GETARG_BOOL, and PG_RETURN_CSTRING.
Referenced by ExecGetJsonValueItemString().
Datum boolrecv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 175 of file bool.c.
References buf, PG_GETARG_POINTER, PG_RETURN_BOOL, and pq_getmsgbyte().
Datum boolsend | ( | PG_FUNCTION_ARGS | ) |
Definition at line 188 of file bool.c.
References buf, PG_GETARG_BOOL, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendbyte().
Datum booltext | ( | PG_FUNCTION_ARGS | ) |
Definition at line 205 of file bool.c.
References cstring_to_text(), PG_GETARG_BOOL, PG_RETURN_TEXT_P, and str.
Datum hashbool | ( | PG_FUNCTION_ARGS | ) |
Datum hashboolextended | ( | PG_FUNCTION_ARGS | ) |
Definition at line 284 of file bool.c.
References hash_uint32_extended(), PG_GETARG_BOOL, and PG_GETARG_INT64.
|
static |
Definition at line 324 of file bool.c.
References AggCheckCallContext(), elog, ERROR, and MemoryContextAlloc().
Referenced by bool_accum().
bool parse_bool | ( | const char * | value, |
bool * | result | ||
) |
Definition at line 31 of file bool.c.
References parse_bool_with_len(), and value.
Referenced by executeItemOptUnwrapTarget(), GrantRole(), parse_and_validate_value(), parse_basebackup_options(), parse_extension_control_file(), parse_one_reloption(), pg_decode_startup(), and ProcessStartupPacket().
bool parse_bool_with_len | ( | const char * | value, |
size_t | len, | ||
bool * | result | ||
) |
Definition at line 37 of file bool.c.
References len, pg_strncasecmp(), and value.
Referenced by boolin(), and parse_bool().