1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Fix the return type of GIN triConsistent support functions to "char".

They were marked to return a boolean, but they actually return a
GinTernaryValue, which is more like a "char". It makes no practical
difference, as the triConsistent functions cannot be called directly from
SQL because they have "internal" arguments, but this nevertheless seems
more correct.

Also fix the GinTernaryValue name in the documentation. I renamed the enum
earlier, but neglected the docs.

Alexander Korotkov. This is new in 9.4, so backpatch there.
This commit is contained in:
Heikki Linnakangas
2014-09-16 09:11:49 +03:00
parent 58e70cf9fb
commit 77e65bf369
3 changed files with 6 additions and 6 deletions

View File

@ -614,7 +614,7 @@
</varlistentry>
<varlistentry>
<term><function>GinLogicValue triConsistent(GinLogicValue check[], StrategyNumber n, Datum query,
<term><function>GinTernaryValue triConsistent(GinTernaryValue check[], StrategyNumber n, Datum query,
int32 nkeys, Pointer extra_data[],
Datum queryKeys[], bool nullFlags[])</></term>
<listitem>