Tighten up assertion on a local variable
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 5 Jan 2026 09:33:35 +0000 (11:33 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 5 Jan 2026 09:33:35 +0000 (11:33 +0200)
commit461b8cc95252ff0177a44be20b06c21ff07af4fa
treefa9d9163cfe3f8704d03b57de2349238c5bb3f43
parent4c144e0452daa2508a008bb4cde520613bbd386d
Tighten up assertion on a local variable

'lineindex' is 0-based, as mentioned in the comments.

Backpatch to v18 where the assertion was added.

Author: ChangAo Chen <cca5507@qq.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/tencent_A84F3C810365BB9BD08442955AE494141907@qq.com
Backpatch-through: 18
src/backend/access/heap/heapam.c