138 while (isspace((
unsigned char) *
str))
142 while (
len > 0 && isspace((
unsigned char)
str[
len - 1]))
149 (
errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
150 errmsg(
"invalid input syntax for type %s: \"%s\"",
151 "boolean", in_str)));
161 char *result = (
char *)
palloc(2);
163 result[0] = (
b) ?
't' :
'f';
330 elog(
ERROR,
"aggregate function called in non-aggregate context");
370 elog(
ERROR,
"bool_accum_inv called with NULL state");
Datum boolge(PG_FUNCTION_ARGS)
Datum boolor_statefunc(PG_FUNCTION_ARGS)
Datum boolle(PG_FUNCTION_ARGS)
Datum boollt(PG_FUNCTION_ARGS)
bool parse_bool(const char *value, bool *result)
Datum boolin(PG_FUNCTION_ARGS)
Datum hashbool(PG_FUNCTION_ARGS)
Datum hashboolextended(PG_FUNCTION_ARGS)
Datum boolgt(PG_FUNCTION_ARGS)
Datum boolrecv(PG_FUNCTION_ARGS)
Datum boolsend(PG_FUNCTION_ARGS)
static BoolAggState * makeBoolAggState(FunctionCallInfo fcinfo)
Datum boolout(PG_FUNCTION_ARGS)
Datum booland_statefunc(PG_FUNCTION_ARGS)
Datum bool_alltrue(PG_FUNCTION_ARGS)
Datum booltext(PG_FUNCTION_ARGS)
Datum booleq(PG_FUNCTION_ARGS)
Datum bool_accum_inv(PG_FUNCTION_ARGS)
Datum boolne(PG_FUNCTION_ARGS)
Datum bool_anytrue(PG_FUNCTION_ARGS)
Datum bool_accum(PG_FUNCTION_ARGS)
bool parse_bool_with_len(const char *value, size_t len, bool *result)
struct BoolAggState BoolAggState
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereturn(context, dummy_value,...)
#define PG_RETURN_BYTEA_P(x)
#define PG_GETARG_POINTER(n)
#define PG_RETURN_CSTRING(x)
#define PG_GETARG_CSTRING(n)
#define PG_GETARG_INT64(n)
#define PG_RETURN_TEXT_P(x)
#define PG_GETARG_BOOL(n)
#define PG_RETURN_POINTER(x)
#define PG_RETURN_BOOL(x)
static Datum hash_uint32(uint32 k)
static Datum hash_uint32_extended(uint32 k, uint64 seed)
void * MemoryContextAlloc(MemoryContext context, Size size)
int AggCheckCallContext(FunctionCallInfo fcinfo, MemoryContext *aggcontext)
int pg_strncasecmp(const char *s1, const char *s2, size_t n)
StringInfoData * StringInfo
text * cstring_to_text(const char *s)