Re: Avoid full GIN index scan when possible
Alexander Korotkov <a.korotkov@postgrespro.ru>
From: Alexander Korotkov <a.korotkov@postgrespro.ru>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, Nikita Glukhov <n.gluhov@postgrespro.ru>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>,
Thomas Munro <thomas.munro@gmail.com>, Marc Cousin <cousinmarc@gmail.com>
Date: 2020-01-14T03:03:41Z
Lists: pgsql-hackers
Attachments
- 0001-Avoid-GIN-full-scan-for-empty-ALL-keys-v12.patch (application/octet-stream) patch v12-0001
Updated patch is attached. It contains more comments as well as commit message. On Sun, Jan 12, 2020 at 12:10 AM Alexander Korotkov <a.korotkov@postgrespro.ru> wrote: > On Sat, Jan 11, 2020 at 3:19 PM Julien Rouhaud <rjuju123@gmail.com> wrote: > > While at it, IIUC only excludeOnly key can have nrequired == 0 (if > > that's the case, this could be explicitly said in startScanKey > > relevant comment), so it'd be more consistent to also use excludeOnly > > rather than nrequired in this assert? > > Make sense. I'll adjust the assert as well as comment. The changes to this assertion are not actually needed. I just accidentally forgot to revert them. ------ Alexander Korotkov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Commits
-
Avoid full scan of GIN indexes when possible
- 4b754d6c16e1 13.0 landed