pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match(
6+ messages / 1 participants
[nested] [flat]

* pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match(
@ 2026-11-25 17:48  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 6+ messages in thread

From: Álvaro Herrera @ 2026-11-25 17:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use indnkeyatts, not indnatts, in infer_collation_opclass_match()

rd_indcollation, rd_opfamily and rd_opcintype only have entries for key
columns, so loops that read them must be bounded by indnkeyatts, not
indnatts.  The function patched here was neglected in commit
386e3d7609c4 "CREATE INDEX ... INCLUDING (column[, ...])" dated April
2016; backpatch all the way back.

Author: Jian He <jian.universality@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Backpatch-through: 15
Discussion: https://postgr.es/m/CACJufxGWVB6dwPaQz25eXm-sdcxOWNfbfTHUd5wG41-zDcG6OA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/99d5d6ec65f0e9c50ba5c190ee4a01d0d608e0d7

Modified Files
--------------
src/backend/commands/analyze.c       | 4 ++++
src/backend/optimizer/util/plancat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)



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

* pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match(
@ 2026-11-25 17:48  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 6+ messages in thread

From: Álvaro Herrera @ 2026-11-25 17:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use indnkeyatts, not indnatts, in infer_collation_opclass_match()

rd_indcollation, rd_opfamily and rd_opcintype only have entries for key
columns, so loops that read them must be bounded by indnkeyatts, not
indnatts.  The function patched here was neglected in commit
386e3d7609c4 "CREATE INDEX ... INCLUDING (column[, ...])" dated April
2016; backpatch all the way back.

Author: Jian He <jian.universality@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Backpatch-through: 15
Discussion: https://postgr.es/m/CACJufxGWVB6dwPaQz25eXm-sdcxOWNfbfTHUd5wG41-zDcG6OA@mail.gmail.com

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/83899750ee7ae3d4f0ed1832253fc06a1f527a78

Modified Files
--------------
src/backend/commands/analyze.c       | 4 ++++
src/backend/optimizer/util/plancat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)



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

* pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match(
@ 2026-11-25 17:48  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 6+ messages in thread

From: Álvaro Herrera @ 2026-11-25 17:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use indnkeyatts, not indnatts, in infer_collation_opclass_match()

rd_indcollation, rd_opfamily and rd_opcintype only have entries for key
columns, so loops that read them must be bounded by indnkeyatts, not
indnatts.  The function patched here was neglected in commit
386e3d7609c4 "CREATE INDEX ... INCLUDING (column[, ...])" dated April
2016; backpatch all the way back.

Author: Jian He <jian.universality@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Backpatch-through: 15
Discussion: https://postgr.es/m/CACJufxGWVB6dwPaQz25eXm-sdcxOWNfbfTHUd5wG41-zDcG6OA@mail.gmail.com

Branch
------
REL_18_STABLE

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

Modified Files
--------------
src/backend/commands/analyze.c       | 4 ++++
src/backend/optimizer/util/plancat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)



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

* pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match(
@ 2026-11-25 17:48  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 6+ messages in thread

From: Álvaro Herrera @ 2026-11-25 17:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use indnkeyatts, not indnatts, in infer_collation_opclass_match()

rd_indcollation, rd_opfamily and rd_opcintype only have entries for key
columns, so loops that read them must be bounded by indnkeyatts, not
indnatts.  The function patched here was neglected in commit
386e3d7609c4 "CREATE INDEX ... INCLUDING (column[, ...])" dated April
2016; backpatch all the way back.

Author: Jian He <jian.universality@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Backpatch-through: 15
Discussion: https://postgr.es/m/CACJufxGWVB6dwPaQz25eXm-sdcxOWNfbfTHUd5wG41-zDcG6OA@mail.gmail.com

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/96033b155eeb1e67cee752ab0868734767357ac2

Modified Files
--------------
src/backend/commands/analyze.c       | 4 ++++
src/backend/optimizer/util/plancat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)



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

* pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match(
@ 2026-11-25 17:48  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 6+ messages in thread

From: Álvaro Herrera @ 2026-11-25 17:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use indnkeyatts, not indnatts, in infer_collation_opclass_match()

rd_indcollation, rd_opfamily and rd_opcintype only have entries for key
columns, so loops that read them must be bounded by indnkeyatts, not
indnatts.  The function patched here was neglected in commit
386e3d7609c4 "CREATE INDEX ... INCLUDING (column[, ...])" dated April
2016; backpatch all the way back.

Author: Jian He <jian.universality@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Backpatch-through: 15
Discussion: https://postgr.es/m/CACJufxGWVB6dwPaQz25eXm-sdcxOWNfbfTHUd5wG41-zDcG6OA@mail.gmail.com

Branch
------
REL_16_STABLE

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

Modified Files
--------------
src/backend/commands/analyze.c       | 4 ++++
src/backend/optimizer/util/plancat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)



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

* pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match(
@ 2026-11-25 17:48  Álvaro Herrera <alvherre@kurilemu.de>
  0 siblings, 0 replies; 6+ messages in thread

From: Álvaro Herrera @ 2026-11-25 17:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use indnkeyatts, not indnatts, in infer_collation_opclass_match()

rd_indcollation, rd_opfamily and rd_opcintype only have entries for key
columns, so loops that read them must be bounded by indnkeyatts, not
indnatts.  The function patched here was neglected in commit
386e3d7609c4 "CREATE INDEX ... INCLUDING (column[, ...])" dated April
2016; backpatch all the way back.

Author: Jian He <jian.universality@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Backpatch-through: 15
Discussion: https://postgr.es/m/CACJufxGWVB6dwPaQz25eXm-sdcxOWNfbfTHUd5wG41-zDcG6OA@mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/23fdc943245404c09869c8281d8295a80c134196

Modified Files
--------------
src/backend/commands/analyze.c       | 4 ++++
src/backend/optimizer/util/plancat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)



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


end of thread, other threads:[~2026-11-25 17:48 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 17:48 pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match( Álvaro Herrera <alvherre@kurilemu.de>
2026-11-25 17:48 pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match( Álvaro Herrera <alvherre@kurilemu.de>
2026-11-25 17:48 pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match( Álvaro Herrera <alvherre@kurilemu.de>
2026-11-25 17:48 pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match( Álvaro Herrera <alvherre@kurilemu.de>
2026-11-25 17:48 pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match( Álvaro Herrera <alvherre@kurilemu.de>
2026-11-25 17:48 pgsql: Use indnkeyatts, not indnatts, in infer_collation_opclass_match( Álvaro Herrera <alvherre@kurilemu.de>

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