Re: BUG #18483: Segmentation fault in tests modules
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, a.kozhemyakin@postgrespro.ru, pgsql-bugs@lists.postgresql.org
Date: 2024-06-17T05:29:05Z
Lists: pgsql-bugs
On Mon, Jun 10, 2024 at 02:50:33PM +0900, Michael Paquier wrote: > On Sun, Jun 09, 2024 at 03:00:00PM +0300, Alexander Lakhin wrote: >> 4) >> I guess, make_tuple_indirect() could be improved with: >> /* only work on existing, not-null varlenas */ >> if (TupleDescAttr(tupdesc, i)->attisdropped || >> nulls[i] || >> - TupleDescAttr(tupdesc, i)->attlen != -1) >> + TupleDescAttr(tupdesc, i)->attlen != -1 || >> + TupleDescAttr(tupdesc, i)->attstorage == TYPSTORAGE_PLAIN) > > Fun. True enough that this function is only here for toastable > values, so that makes sense. This one was indeed simple enough, so fixed it for now. -- Michael
Commits
-
Make regress function make_tuple_indirect() able to handle plain attributes
- 8f1888eb6d60 17.0 landed
-
Fix segmentation fault in test_tidstore.
- 18404ea60141 17.0 landed
-
Tighten test_predtest's input checks, and improve error messages.
- f4b44f278695 12.20 landed
- f1f6ded66897 16.4 landed
- d8062ead3d83 13.16 landed
- 5f200ab5749a 14.13 landed
- 2eba27571edc 15.8 landed
- 00ac25a3c365 17.0 landed