|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <ctype.h>#include <limits.h>#include <math.h>#include "common/int.h"#include "funcapi.h"#include "libpq/pqformat.h"#include "nodes/nodeFuncs.h"#include "nodes/supportnodes.h"#include "optimizer/optimizer.h"#include "utils/builtins.h"#include "utils/fmgroids.h"
Go to the source code of this file.
Data Structures | |
| struct | generate_series_fctx |
| Datum dtoi8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1308 of file int8.c.
References ereturn, errcode(), errmsg, fb(), FLOAT8_FITS_IN_INT64, PG_GETARG_FLOAT8, PG_RETURN_INT64, and unlikely.
Referenced by int8_to_char().
| Datum ftoi8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1344 of file int8.c.
References ereturn, errcode(), errmsg, fb(), FLOAT4_FITS_IN_INT64, PG_GETARG_FLOAT4, PG_RETURN_INT64, and unlikely.
| Datum generate_series_int8 | ( | PG_FUNCTION_ARGS | ) |
| Datum generate_series_int8_support | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1479 of file int8.c.
References DatumGetInt64(), estimate_expression_value(), fb(), is_funcclause(), IsA, linitial, list_length(), lsecond, lthird, PG_GETARG_POINTER, PG_RETURN_POINTER, and start.
| Datum generate_series_step_int8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1403 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), Int64GetDatum(), MemoryContextSwitchTo(), palloc_object, pg_add_s64_overflow(), PG_GETARG_INT64, PG_NARGS, result, SRF_FIRSTCALL_INIT, SRF_IS_FIRSTCALL, SRF_PERCALL_SETUP, SRF_RETURN_DONE, SRF_RETURN_NEXT, and start.
Referenced by generate_series_int8().
| Datum i8tod | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1293 of file int8.c.
References arg, PG_GETARG_INT64, PG_RETURN_FLOAT8, and result.
| Datum i8tof | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1329 of file int8.c.
References arg, PG_GETARG_INT64, PG_RETURN_FLOAT4, and result.
| Datum i8tooid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1365 of file int8.c.
References arg, ereturn, errcode(), errmsg, fb(), PG_GETARG_INT64, PG_RETURN_OID, PG_UINT32_MAX, and unlikely.
| Datum in_range_int8_int8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 408 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), pg_add_s64_overflow(), PG_GETARG_BOOL, PG_GETARG_INT64, PG_RETURN_BOOL, unlikely, and val.
| Datum int28 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1272 of file int8.c.
References arg, PG_GETARG_INT16, and PG_RETURN_INT64.
| Datum int28div | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1164 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT16, PG_GETARG_INT64, PG_RETURN_INT64, PG_RETURN_NULL, and unlikely.
| Datum int28eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 348 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int28ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 393 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int28gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 375 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int28le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 384 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int28lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 366 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int28mi | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1136 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT16, PG_GETARG_INT64, PG_RETURN_INT64, pg_sub_s64_overflow(), result, and unlikely.
| Datum int28mul | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1150 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT16, PG_GETARG_INT64, pg_mul_s64_overflow(), PG_RETURN_INT64, result, and unlikely.
| Datum int28ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 357 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int28pl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1122 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), pg_add_s64_overflow(), PG_GETARG_INT16, PG_GETARG_INT64, PG_RETURN_INT64, result, and unlikely.
| Datum int48 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1251 of file int8.c.
References arg, PG_GETARG_INT32, and PG_RETURN_INT64.
| Datum int48div | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1022 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT32, PG_GETARG_INT64, PG_RETURN_INT64, PG_RETURN_NULL, and unlikely.
| Datum int48eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 232 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int48ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 277 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int48gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 259 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int48le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 268 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int48lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 250 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int48mi | ( | PG_FUNCTION_ARGS | ) |
Definition at line 994 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT32, PG_GETARG_INT64, PG_RETURN_INT64, pg_sub_s64_overflow(), result, and unlikely.
| Datum int48mul | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1008 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT32, PG_GETARG_INT64, pg_mul_s64_overflow(), PG_RETURN_INT64, result, and unlikely.
| Datum int48ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 241 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int48pl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 980 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), pg_add_s64_overflow(), PG_GETARG_INT32, PG_GETARG_INT64, PG_RETURN_INT64, result, and unlikely.
| Datum int82 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1280 of file int8.c.
References arg, ereturn, errcode(), errmsg, fb(), PG_GETARG_INT64, PG_INT16_MAX, PG_INT16_MIN, PG_RETURN_INT16, and unlikely.
| Datum int82div | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1083 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT16, PG_GETARG_INT64, PG_INT64_MIN, PG_RETURN_INT64, PG_RETURN_NULL, result, and unlikely.
| Datum int82eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 290 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int82ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 335 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int82gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 317 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int82le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 326 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int82lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 308 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int82mi | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1055 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT16, PG_GETARG_INT64, PG_RETURN_INT64, pg_sub_s64_overflow(), result, and unlikely.
| Datum int82mul | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1069 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT16, PG_GETARG_INT64, pg_mul_s64_overflow(), PG_RETURN_INT64, result, and unlikely.
| Datum int82ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 299 of file int8.c.
References fb(), PG_GETARG_INT16, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int82pl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1041 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), pg_add_s64_overflow(), PG_GETARG_INT16, PG_GETARG_INT64, PG_RETURN_INT64, result, and unlikely.
| Datum int84 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1259 of file int8.c.
References arg, ereturn, errcode(), errmsg, fb(), PG_GETARG_INT64, PG_INT32_MAX, PG_INT32_MIN, PG_RETURN_INT32, and unlikely.
| Datum int84div | ( | PG_FUNCTION_ARGS | ) |
Definition at line 941 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT32, PG_GETARG_INT64, PG_INT64_MIN, PG_RETURN_INT64, PG_RETURN_NULL, result, and unlikely.
| Datum int84eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 174 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int84ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 219 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int84gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 201 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int84le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 210 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int84lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 192 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int84mi | ( | PG_FUNCTION_ARGS | ) |
Definition at line 913 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT32, PG_GETARG_INT64, PG_RETURN_INT64, pg_sub_s64_overflow(), result, and unlikely.
| Datum int84mul | ( | PG_FUNCTION_ARGS | ) |
Definition at line 927 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT32, PG_GETARG_INT64, pg_mul_s64_overflow(), PG_RETURN_INT64, result, and unlikely.
| Datum int84ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 183 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int84pl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 899 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), pg_add_s64_overflow(), PG_GETARG_INT32, PG_GETARG_INT64, PG_RETURN_INT64, result, and unlikely.
| Datum int8abs | ( | PG_FUNCTION_ARGS | ) |
Definition at line 554 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT64, PG_INT64_MIN, PG_RETURN_INT64, result, and unlikely.
| Datum int8and | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1194 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_INT64.
| Datum int8dec | ( | PG_FUNCTION_ARGS | ) |
Definition at line 742 of file int8.c.
References arg, ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT64, PG_RETURN_INT64, pg_sub_s64_overflow(), result, and unlikely.
Referenced by int8dec_any().
| Datum int8dec_any | ( | PG_FUNCTION_ARGS | ) |
| Datum int8div | ( | PG_FUNCTION_ARGS | ) |
Definition at line 511 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT64, PG_INT64_MIN, PG_RETURN_INT64, PG_RETURN_NULL, result, and unlikely.
| Datum int8eq | ( | PG_FUNCTION_ARGS | ) |
Definition at line 116 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int8gcd | ( | PG_FUNCTION_ARGS | ) |
Definition at line 676 of file int8.c.
References fb(), int8gcd_internal(), PG_GETARG_INT64, PG_RETURN_INT64, and result.
Definition at line 615 of file int8.c.
References a1, a2, ereport, errcode(), errmsg, ERROR, fb(), and PG_INT64_MIN.
| Datum int8ge | ( | PG_FUNCTION_ARGS | ) |
Definition at line 161 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int8gt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 143 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int8in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 51 of file int8.c.
References PG_GETARG_CSTRING, PG_RETURN_INT64, and pg_strtoint64_safe().
Referenced by defGetInt64(), and executeItemOptUnwrapTarget().
| Datum int8inc | ( | PG_FUNCTION_ARGS | ) |
Definition at line 728 of file int8.c.
References arg, ereport, errcode(), errmsg, ERROR, fb(), pg_add_s64_overflow(), PG_GETARG_INT64, PG_RETURN_INT64, result, and unlikely.
Referenced by int8inc_any(), and int8inc_float8_float8().
| Datum int8inc_any | ( | PG_FUNCTION_ARGS | ) |
| Datum int8inc_float8_float8 | ( | PG_FUNCTION_ARGS | ) |
| Datum int8inc_support | ( | PG_FUNCTION_ARGS | ) |
Definition at line 788 of file int8.c.
References arg, Assert, expr_is_nonnullable(), fb(), FRAMEOPTION_END_UNBOUNDED_FOLLOWING, FRAMEOPTION_START_UNBOUNDED_PRECEDING, WindowClause::frameOptions, InvalidOid, IsA, linitial, list_length(), makeNode, memcpy(), MONOTONICFUNC_BOTH, MONOTONICFUNC_DECREASING, MONOTONICFUNC_INCREASING, MONOTONICFUNC_NONE, NIL, NOTNULL_SOURCE_HASHTABLE, PG_GETARG_POINTER, PG_RETURN_POINTER, and SupportRequestWFuncMonotonic::window_clause.
| Datum int8larger | ( | PG_FUNCTION_ARGS | ) |
Definition at line 875 of file int8.c.
References fb(), PG_GETARG_INT64, PG_RETURN_INT64, and result.
| Datum int8lcm | ( | PG_FUNCTION_ARGS | ) |
Definition at line 691 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), gcd(), int8gcd_internal(), PG_GETARG_INT64, PG_INT64_MIN, pg_mul_s64_overflow(), PG_RETURN_INT64, result, and unlikely.
| Datum int8le | ( | PG_FUNCTION_ARGS | ) |
Definition at line 152 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int8lt | ( | PG_FUNCTION_ARGS | ) |
Definition at line 134 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int8mi | ( | PG_FUNCTION_ARGS | ) |
Definition at line 483 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT64, PG_RETURN_INT64, pg_sub_s64_overflow(), result, and unlikely.
| Datum int8mod | ( | PG_FUNCTION_ARGS | ) |
Definition at line 572 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT64, PG_RETURN_INT64, PG_RETURN_NULL, and unlikely.
| Datum int8mul | ( | PG_FUNCTION_ARGS | ) |
Definition at line 497 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT64, pg_mul_s64_overflow(), PG_RETURN_INT64, result, and unlikely.
Referenced by int8_to_char().
| Datum int8ne | ( | PG_FUNCTION_ARGS | ) |
Definition at line 125 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_BOOL.
| Datum int8not | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1221 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_INT64.
| Datum int8or | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1203 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_INT64.
| Datum int8out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 63 of file int8.c.
References buf, len, MAXINT8LEN, memcpy(), palloc(), PG_GETARG_INT64, pg_lltoa(), PG_RETURN_CSTRING, result, and val.
Referenced by int8_to_char().
| Datum int8pl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 469 of file int8.c.
References ereport, errcode(), errmsg, ERROR, fb(), pg_add_s64_overflow(), PG_GETARG_INT64, PG_RETURN_INT64, result, and unlikely.
| Datum int8recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 85 of file int8.c.
References buf, PG_GETARG_POINTER, PG_RETURN_INT64, and pq_getmsgint64().
| Datum int8send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 96 of file int8.c.
References buf, fb(), PG_GETARG_INT64, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendint64().
Referenced by int8_bytea().
| Datum int8shl | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1229 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_INT64.
| Datum int8shr | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1238 of file int8.c.
References fb(), PG_GETARG_INT32, PG_GETARG_INT64, and PG_RETURN_INT64.
| Datum int8smaller | ( | PG_FUNCTION_ARGS | ) |
Definition at line 887 of file int8.c.
References fb(), PG_GETARG_INT64, PG_RETURN_INT64, and result.
| Datum int8um | ( | PG_FUNCTION_ARGS | ) |
Definition at line 447 of file int8.c.
References arg, ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT64, PG_INT64_MIN, PG_RETURN_INT64, result, and unlikely.
| Datum int8up | ( | PG_FUNCTION_ARGS | ) |
Definition at line 461 of file int8.c.
References arg, PG_GETARG_INT64, and PG_RETURN_INT64.
| Datum int8xor | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1212 of file int8.c.
References fb(), PG_GETARG_INT64, and PG_RETURN_INT64.
| Datum oidtoi8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1378 of file int8.c.
References arg, PG_GETARG_OID, and PG_RETURN_INT64.
| Datum oidtooid8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1386 of file int8.c.
References arg, PG_GETARG_OID, and PG_RETURN_OID8.