From: | DEV_OPS <devops(at)ww-it(dot)cn> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | Re: pgsql: Improve handling of NULLs in KNN-GiST and KNN-SP-GiST |
Date: | 2019-09-20 03:12:32 |
Message-ID: | 719816d0-ff58-4360-f526-a1797c10fb0f@ww-it.cn |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
hello admin
is there any issue with the mail list system? can be improved? I usually receive multi times on the same thread, such as this one, attached for the screen dump.
sorry for interruption and inconveniences
best regards
Tony
On 2019/9/20 03:11, Alexander Korotkov wrote:
Improve handling of NULLs in KNN-GiST and KNN-SP-GiST
This commit improves subject in two ways:
* It removes ugliness of 02f90879e7, which stores distance values and null
flags in two separate arrays after GISTSearchItem struct. Instead we pack
both distance value and null flag in IndexOrderByDistance struct. Alignment
overhead should be negligible, because we typically deal with at most few
"col op const" expressions in ORDER BY clause.
* It fixes handling of "col op NULL" expression in KNN-SP-GiST. Now, these
expression are not passed to support functions, which can't deal with them.
Instead, NULL result is implicitly assumed. It future we may decide to
teach support functions to deal with NULL arguments, but current solution is
bugfix suitable for backpatch.
Reported-by: Nikita Glukhov
Discussion: https://postgr.es/m/826f57ee-afc7-8977-c44c-6111d18b02ec%40postgrespro.ru
Author: Nikita Glukhov
Reviewed-by: Alexander Korotkov
Backpatch-through: 9.4
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/53d9cf2db5ded873fbcc031acb584a2c05e4983b
Modified Files
--------------
src/backend/access/gist/gistget.c | 75 ++++++++++++++------------------------
src/backend/access/gist/gistscan.c | 16 +++-----
src/include/access/genam.h | 7 ++++
src/include/access/gist_private.h | 27 +++-----------
src/tools/pgindent/typedefs.list | 1 +
5 files changed, 47 insertions(+), 79 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2019-09-20 03:15:50 | pgsql: Fix typo in commit 82fa3ff8672. |
Previous Message | Alexander Korotkov | 2019-09-19 22:52:05 | pgsql: Remove unstable KNN SP-GiST test |