mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
pgindent run before PG 9.1 beta 1.
This commit is contained in:
@ -98,7 +98,7 @@ gettoken(WORKSTATE *state, int4 *val)
|
||||
}
|
||||
else
|
||||
{
|
||||
long lval;
|
||||
long lval;
|
||||
|
||||
nnn[innn] = '\0';
|
||||
errno = 0;
|
||||
@ -355,8 +355,8 @@ gin_bool_consistent(QUERYTYPE *query, bool *check)
|
||||
return FALSE;
|
||||
|
||||
/*
|
||||
* Set up data for checkcondition_gin. This must agree with the
|
||||
* query extraction code in ginint4_queryextract.
|
||||
* Set up data for checkcondition_gin. This must agree with the query
|
||||
* extraction code in ginint4_queryextract.
|
||||
*/
|
||||
gcv.first = items;
|
||||
gcv.mapped_check = (bool *) palloc(sizeof(bool) * query->size);
|
||||
|
@ -34,8 +34,8 @@ ginint4_queryextract(PG_FUNCTION_ARGS)
|
||||
|
||||
/*
|
||||
* If the query doesn't have any required primitive values (for
|
||||
* instance, it's something like '! 42'), we have to do a full
|
||||
* index scan.
|
||||
* instance, it's something like '! 42'), we have to do a full index
|
||||
* scan.
|
||||
*/
|
||||
if (query_has_required_values(query))
|
||||
*searchMode = GIN_SEARCH_MODE_DEFAULT;
|
||||
@ -95,7 +95,7 @@ ginint4_queryextract(PG_FUNCTION_ARGS)
|
||||
case RTOldContainsStrategyNumber:
|
||||
if (*nentries > 0)
|
||||
*searchMode = GIN_SEARCH_MODE_DEFAULT;
|
||||
else /* everything contains the empty set */
|
||||
else /* everything contains the empty set */
|
||||
*searchMode = GIN_SEARCH_MODE_ALL;
|
||||
break;
|
||||
default:
|
||||
@ -116,6 +116,7 @@ ginint4_consistent(PG_FUNCTION_ARGS)
|
||||
bool *check = (bool *) PG_GETARG_POINTER(0);
|
||||
StrategyNumber strategy = PG_GETARG_UINT16(1);
|
||||
int32 nkeys = PG_GETARG_INT32(3);
|
||||
|
||||
/* Pointer *extra_data = (Pointer *) PG_GETARG_POINTER(4); */
|
||||
bool *recheck = (bool *) PG_GETARG_POINTER(5);
|
||||
bool res = FALSE;
|
||||
|
@ -183,7 +183,7 @@ rt__int_size(ArrayType *a, float *size)
|
||||
*size = (float) ARRNELEMS(a);
|
||||
}
|
||||
|
||||
/* Sort the given data (len >= 2). Return true if any duplicates found */
|
||||
/* Sort the given data (len >= 2). Return true if any duplicates found */
|
||||
bool
|
||||
isort(int4 *a, int len)
|
||||
{
|
||||
@ -195,7 +195,7 @@ isort(int4 *a, int len)
|
||||
bool r = FALSE;
|
||||
|
||||
/*
|
||||
* We use a simple insertion sort. While this is O(N^2) in the worst
|
||||
* We use a simple insertion sort. While this is O(N^2) in the worst
|
||||
* case, it's quite fast if the input is already sorted or nearly so.
|
||||
* Also, for not-too-large inputs it's faster than more complex methods
|
||||
* anyhow.
|
||||
|
Reference in New Issue
Block a user