Skip to content

Commit 8f1888e

Browse files
committed
Make regress function make_tuple_indirect() able to handle plain attributes
The function has been introduced in 3682025 to test at a low level the new kinds of external toast datums, and would fail on OOM when dealing with a plain storage attribute. The existing tests of indirect_toast do not test this case, still the error generated was confusing. Author: Alexander Lakhin Discussion: https://postgr.es/m/250a21e5-d677-6b2a-2692-cd4233785e37@gmail.com
1 parent faaa0d2 commit 8f1888e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/regress/regress.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,8 @@ make_tuple_indirect(PG_FUNCTION_ARGS)
595595
/* only work on existing, not-null varlenas */
596596
if (TupleDescAttr(tupdesc, i)->attisdropped ||
597597
nulls[i] ||
598-
TupleDescAttr(tupdesc, i)->attlen != -1)
598+
TupleDescAttr(tupdesc, i)->attlen != -1 ||
599+
TupleDescAttr(tupdesc, i)->attstorage == TYPSTORAGE_PLAIN)
599600
continue;
600601

601602
attr = (struct varlena *) DatumGetPointer(values[i]);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy