On 2019-11-13 18:11:35 +0000, Ranier Vilela wrote:
> Now we have a technical explanation, which explains the problem.
> And not a judgment about knowledge.
I have no idea what that means.
> Let's hope that always SPGIST_CONFIG_PROC hit first.
It will be. The list of support functions is is essentially ordered by
amprocnum. And the procedure numbers are:
/* SPGiST opclass support function numbers */
#define SPGIST_CONFIG_PROC 1
#define SPGIST_CHOOSE_PROC 2
#define SPGIST_PICKSPLIT_PROC 3
#define SPGIST_INNER_CONSISTENT_PROC 4
#define SPGIST_LEAF_CONSISTENT_PROC 5
#define SPGIST_COMPRESS_PROC 6
#define SPGISTNRequiredProc 5
#define SPGISTNProc 6
It certainly could be more obvious. I'm not a fan of the spgist code :(.
Greetings,
Andres Freund