Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f1888e

Browse files
committed
Make regress function make_tuple_indirect() able to handle plain attributes
The function has been introduced in3682025 to test at a low levelthe new kinds of external toast datums, and would fail on OOM whendealing with a plain storage attribute. The existing tests ofindirect_toast do not test this case, still the error generated wasconfusing.Author: Alexander LakhinDiscussion:https://postgr.es/m/250a21e5-d677-6b2a-2692-cd4233785e37@gmail.com
1 parentfaaa0d2 commit8f1888e

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= (structvarlena*)DatumGetPointer(values[i]);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp