pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op
7+ messages / 1 participants
[nested] [flat]

* pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op
@ 2021-08-10 22:10  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-10 22:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix failure of btree_gin indexscans with "char" type and </<= operators.

As a result of confusion about whether the "char" type is signed or
unsigned, scans for index searches like "col < 'x'" or "col <= 'x'"
would start at the middle of the index not the left end, thus missing
many or all of the entries they should find.  Fortunately, this
is not a symptom of index corruption.  It's only the search logic
that is broken, and we can fix it without unpleasant side-effects.

Per report from Jason Kim.  This has been wrong since btree_gin's
beginning, so back-patch to all supported branches.

Discussion: https://postgr.es/m/20210810001649.htnltbh7c63re42p@jasonk.me

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7ba487cf90071717c9c352dc074a9140860eba55

Modified Files
--------------
contrib/btree_gin/btree_gin.c       |  2 +-
contrib/btree_gin/expected/char.out | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op
@ 2021-08-10 22:10  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-10 22:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix failure of btree_gin indexscans with "char" type and </<= operators.

As a result of confusion about whether the "char" type is signed or
unsigned, scans for index searches like "col < 'x'" or "col <= 'x'"
would start at the middle of the index not the left end, thus missing
many or all of the entries they should find.  Fortunately, this
is not a symptom of index corruption.  It's only the search logic
that is broken, and we can fix it without unpleasant side-effects.

Per report from Jason Kim.  This has been wrong since btree_gin's
beginning, so back-patch to all supported branches.

Discussion: https://postgr.es/m/20210810001649.htnltbh7c63re42p@jasonk.me

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5a9df5d509305bab7f21b8d188f618e0a1906087

Modified Files
--------------
contrib/btree_gin/btree_gin.c       |  2 +-
contrib/btree_gin/expected/char.out | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op
@ 2021-08-10 22:10  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-10 22:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix failure of btree_gin indexscans with "char" type and </<= operators.

As a result of confusion about whether the "char" type is signed or
unsigned, scans for index searches like "col < 'x'" or "col <= 'x'"
would start at the middle of the index not the left end, thus missing
many or all of the entries they should find.  Fortunately, this
is not a symptom of index corruption.  It's only the search logic
that is broken, and we can fix it without unpleasant side-effects.

Per report from Jason Kim.  This has been wrong since btree_gin's
beginning, so back-patch to all supported branches.

Discussion: https://postgr.es/m/20210810001649.htnltbh7c63re42p@jasonk.me

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/eefa4c2b5ed647fed9795f79ed4287898fae9ce6

Modified Files
--------------
contrib/btree_gin/btree_gin.c       |  2 +-
contrib/btree_gin/expected/char.out | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op
@ 2021-08-10 22:10  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-10 22:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix failure of btree_gin indexscans with "char" type and </<= operators.

As a result of confusion about whether the "char" type is signed or
unsigned, scans for index searches like "col < 'x'" or "col <= 'x'"
would start at the middle of the index not the left end, thus missing
many or all of the entries they should find.  Fortunately, this
is not a symptom of index corruption.  It's only the search logic
that is broken, and we can fix it without unpleasant side-effects.

Per report from Jason Kim.  This has been wrong since btree_gin's
beginning, so back-patch to all supported branches.

Discussion: https://postgr.es/m/20210810001649.htnltbh7c63re42p@jasonk.me

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cd7d9b6b63f1ed1d60cab3888eb0fc2523de6f0e

Modified Files
--------------
contrib/btree_gin/btree_gin.c       |  2 +-
contrib/btree_gin/expected/char.out | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op
@ 2021-08-10 22:10  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-10 22:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix failure of btree_gin indexscans with "char" type and </<= operators.

As a result of confusion about whether the "char" type is signed or
unsigned, scans for index searches like "col < 'x'" or "col <= 'x'"
would start at the middle of the index not the left end, thus missing
many or all of the entries they should find.  Fortunately, this
is not a symptom of index corruption.  It's only the search logic
that is broken, and we can fix it without unpleasant side-effects.

Per report from Jason Kim.  This has been wrong since btree_gin's
beginning, so back-patch to all supported branches.

Discussion: https://postgr.es/m/20210810001649.htnltbh7c63re42p@jasonk.me

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a6bd28beb0639d4cf424e961862a65c466ca65bf

Modified Files
--------------
contrib/btree_gin/btree_gin.c       |  2 +-
contrib/btree_gin/expected/char.out | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op
@ 2021-08-10 22:10  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-10 22:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix failure of btree_gin indexscans with "char" type and </<= operators.

As a result of confusion about whether the "char" type is signed or
unsigned, scans for index searches like "col < 'x'" or "col <= 'x'"
would start at the middle of the index not the left end, thus missing
many or all of the entries they should find.  Fortunately, this
is not a symptom of index corruption.  It's only the search logic
that is broken, and we can fix it without unpleasant side-effects.

Per report from Jason Kim.  This has been wrong since btree_gin's
beginning, so back-patch to all supported branches.

Discussion: https://postgr.es/m/20210810001649.htnltbh7c63re42p@jasonk.me

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/843d2879aaefd870c978107e4c69b6681db49ca3

Modified Files
--------------
contrib/btree_gin/btree_gin.c       |  2 +-
contrib/btree_gin/expected/char.out | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op
@ 2021-08-10 22:10  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-08-10 22:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix failure of btree_gin indexscans with "char" type and </<= operators.

As a result of confusion about whether the "char" type is signed or
unsigned, scans for index searches like "col < 'x'" or "col <= 'x'"
would start at the middle of the index not the left end, thus missing
many or all of the entries they should find.  Fortunately, this
is not a symptom of index corruption.  It's only the search logic
that is broken, and we can fix it without unpleasant side-effects.

Per report from Jason Kim.  This has been wrong since btree_gin's
beginning, so back-patch to all supported branches.

Discussion: https://postgr.es/m/20210810001649.htnltbh7c63re42p@jasonk.me

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a4957b5a72dc9e169b78604f67357bb3dc49d826

Modified Files
--------------
contrib/btree_gin/btree_gin.c       |  2 +-
contrib/btree_gin/expected/char.out | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2021-08-10 22:10 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10 22:10 pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op Tom Lane <tgl@sss.pgh.pa.us>
2021-08-10 22:10 pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op Tom Lane <tgl@sss.pgh.pa.us>
2021-08-10 22:10 pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op Tom Lane <tgl@sss.pgh.pa.us>
2021-08-10 22:10 pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op Tom Lane <tgl@sss.pgh.pa.us>
2021-08-10 22:10 pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op Tom Lane <tgl@sss.pgh.pa.us>
2021-08-10 22:10 pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op Tom Lane <tgl@sss.pgh.pa.us>
2021-08-10 22:10 pgsql: Fix failure of btree_gin indexscans with "char" type and </<= op Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox