mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Pgindent run before 9.1 beta2.
This commit is contained in:
@@ -56,15 +56,15 @@ callConsistentFn(GinState *ginstate, GinScanKey key)
|
||||
key->recheckCurItem = true;
|
||||
|
||||
return DatumGetBool(FunctionCall8Coll(&ginstate->consistentFn[key->attnum - 1],
|
||||
ginstate->supportCollation[key->attnum - 1],
|
||||
ginstate->supportCollation[key->attnum - 1],
|
||||
PointerGetDatum(key->entryRes),
|
||||
UInt16GetDatum(key->strategy),
|
||||
key->query,
|
||||
UInt32GetDatum(key->nuserentries),
|
||||
PointerGetDatum(key->extra_data),
|
||||
PointerGetDatum(&key->recheckCurItem),
|
||||
PointerGetDatum(&key->recheckCurItem),
|
||||
PointerGetDatum(key->queryValues),
|
||||
PointerGetDatum(key->queryCategories)));
|
||||
PointerGetDatum(key->queryCategories)));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -252,7 +252,7 @@ collectMatchBitmap(GinBtreeData *btree, GinBtreeStack *stack,
|
||||
*----------
|
||||
*/
|
||||
cmp = DatumGetInt32(FunctionCall4Coll(&btree->ginstate->comparePartialFn[attnum - 1],
|
||||
btree->ginstate->supportCollation[attnum - 1],
|
||||
btree->ginstate->supportCollation[attnum - 1],
|
||||
scanEntry->queryKey,
|
||||
idatum,
|
||||
UInt16GetDatum(scanEntry->strategy),
|
||||
@@ -1178,10 +1178,10 @@ matchPartialInPendingList(GinState *ginstate, Page page,
|
||||
*----------
|
||||
*/
|
||||
cmp = DatumGetInt32(FunctionCall4Coll(&ginstate->comparePartialFn[entry->attnum - 1],
|
||||
ginstate->supportCollation[entry->attnum - 1],
|
||||
ginstate->supportCollation[entry->attnum - 1],
|
||||
entry->queryKey,
|
||||
datum[off - 1],
|
||||
UInt16GetDatum(entry->strategy),
|
||||
UInt16GetDatum(entry->strategy),
|
||||
PointerGetDatum(entry->extra_data)));
|
||||
if (cmp == 0)
|
||||
return true;
|
||||
|
||||
@@ -306,11 +306,11 @@ ginNewScanKey(IndexScanDesc scan)
|
||||
/* OK to call the extractQueryFn */
|
||||
queryValues = (Datum *)
|
||||
DatumGetPointer(FunctionCall7Coll(&so->ginstate.extractQueryFn[skey->sk_attno - 1],
|
||||
so->ginstate.supportCollation[skey->sk_attno - 1],
|
||||
so->ginstate.supportCollation[skey->sk_attno - 1],
|
||||
skey->sk_argument,
|
||||
PointerGetDatum(&nQueryValues),
|
||||
UInt16GetDatum(skey->sk_strategy),
|
||||
PointerGetDatum(&partial_matches),
|
||||
UInt16GetDatum(skey->sk_strategy),
|
||||
PointerGetDatum(&partial_matches),
|
||||
PointerGetDatum(&extra_data),
|
||||
PointerGetDatum(&nullFlags),
|
||||
PointerGetDatum(&searchMode)));
|
||||
|
||||
@@ -94,8 +94,8 @@ initGinState(GinState *state, Relation index)
|
||||
* type for a noncollatable indexed data type (for instance, hstore
|
||||
* uses text index entries). If there's no index collation then
|
||||
* specify default collation in case the support functions need
|
||||
* collation. This is harmless if the support functions don't
|
||||
* care about collation, so we just do it unconditionally. (We could
|
||||
* collation. This is harmless if the support functions don't care
|
||||
* about collation, so we just do it unconditionally. (We could
|
||||
* alternatively call get_typcollation, but that seems like expensive
|
||||
* overkill --- there aren't going to be any cases where a GIN storage
|
||||
* type has a nondefault collation.)
|
||||
@@ -293,7 +293,7 @@ ginCompareEntries(GinState *ginstate, OffsetNumber attnum,
|
||||
|
||||
/* both not null, so safe to call the compareFn */
|
||||
return DatumGetInt32(FunctionCall2Coll(&ginstate->compareFn[attnum - 1],
|
||||
ginstate->supportCollation[attnum - 1],
|
||||
ginstate->supportCollation[attnum - 1],
|
||||
a, b));
|
||||
}
|
||||
|
||||
@@ -400,7 +400,7 @@ ginExtractEntries(GinState *ginstate, OffsetNumber attnum,
|
||||
nullFlags = NULL; /* in case extractValue doesn't set it */
|
||||
entries = (Datum *)
|
||||
DatumGetPointer(FunctionCall3Coll(&ginstate->extractValueFn[attnum - 1],
|
||||
ginstate->supportCollation[attnum - 1],
|
||||
ginstate->supportCollation[attnum - 1],
|
||||
value,
|
||||
PointerGetDatum(nentries),
|
||||
PointerGetDatum(&nullFlags)));
|
||||
|
||||
Reference in New Issue
Block a user