pgsql: Prevent infinite insertion loops in spgdoinsert().

2021-05-14 Thread Tom Lane
Prevent infinite insertion loops in spgdoinsert(). Formerly we just relied on operator classes that assert longValuesOK to eventually shorten the leaf value enough to fit on an index page. That fails since the introduction of INCLUDE-column support (commit 09c1c6ab4), because the INCLUDE columns m

pgsql: Prevent infinite insertion loops in spgdoinsert().

2021-05-14 Thread Tom Lane
Prevent infinite insertion loops in spgdoinsert(). Formerly we just relied on operator classes that assert longValuesOK to eventually shorten the leaf value enough to fit on an index page. That fails since the introduction of INCLUDE-column support (commit 09c1c6ab4), because the INCLUDE columns m

pgsql: Prevent infinite insertion loops in spgdoinsert().

2021-05-14 Thread Tom Lane
Prevent infinite insertion loops in spgdoinsert(). Formerly we just relied on operator classes that assert longValuesOK to eventually shorten the leaf value enough to fit on an index page. That fails since the introduction of INCLUDE-column support (commit 09c1c6ab4), because the INCLUDE columns m

pgsql: Prevent infinite insertion loops in spgdoinsert().

2021-05-14 Thread Tom Lane
Prevent infinite insertion loops in spgdoinsert(). Formerly we just relied on operator classes that assert longValuesOK to eventually shorten the leaf value enough to fit on an index page. That fails since the introduction of INCLUDE-column support (commit 09c1c6ab4), because the INCLUDE columns m

pgsql: Prevent infinite insertion loops in spgdoinsert().

2021-05-14 Thread Tom Lane
Prevent infinite insertion loops in spgdoinsert(). Formerly we just relied on operator classes that assert longValuesOK to eventually shorten the leaf value enough to fit on an index page. That fails since the introduction of INCLUDE-column support (commit 09c1c6ab4), because the INCLUDE columns m

pgsql: Prevent infinite insertion loops in spgdoinsert().

2021-05-14 Thread Tom Lane
Prevent infinite insertion loops in spgdoinsert(). Formerly we just relied on operator classes that assert longValuesOK to eventually shorten the leaf value enough to fit on an index page. That fails since the introduction of INCLUDE-column support (commit 09c1c6ab4), because the INCLUDE columns m