111 return (ao->
oper > bo->
oper) ? -1 : 1;
226 int oldnchild = in->
nchild;
231 if (
i + 1 != oldnchild)
233 (oldnchild -
i - 1) *
sizeof(
QTNode *));
333 state->curitem->qoperand.distance =
state->curoperand -
state->operand;
375 (
errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
376 errmsg(
"tsquery is too large")));
#define COMPUTESIZE(size)
#define Assert(condition)
static void PGresult * res
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
void pfree(void *pointer)
void * palloc0(Size size)
void * repalloc(void *pointer, Size size)
#define qsort(a, b, c, d)
void check_stack_depth(void)
#define TSQUERY_TOO_BIG(size, lenofoperand)
void QTNClearFlags(QTNode *in, uint32 flags)
int QTNodeCompare(QTNode *an, QTNode *bn)
QTNode * QTNCopy(QTNode *in)
QTNode * QT2QTN(QueryItem *in, char *operand)
static void cntsize(QTNode *in, int *sumlen, int *nnode)
static int cmpQTN(const void *a, const void *b)
void QTNTernary(QTNode *in)
bool QTNEq(QTNode *a, QTNode *b)
static void fillQT(QTN2QTState *state, QTNode *in)
TSQuery QTN2QT(QTNode *in)
void QTNBinary(QTNode *in)
int32 tsCompareString(char *a, int lena, char *b, int lenb, bool prefix)
#define SET_VARSIZE(PTR, len)