Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRgT7-00074A-MA for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Dec 2017 15:39:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRgT7-0000qW-8U for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Dec 2017 15:39:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eRgT7-0000qM-2k for pgsql-bugs@lists.postgresql.org; Wed, 20 Dec 2017 15:39:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eRgT4-0004GL-Ly for pgsql-bugs@postgresql.org; Wed, 20 Dec 2017 15:39:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vBKFdamj012155; Wed, 20 Dec 2017 10:39:37 -0500 From: Tom Lane To: bucoo@sohu.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14984: function "heap_tuple_from_minimal_tuple" lost HeapTupleHeader->t_len value In-reply-to: <20171220094958.25744.94506@wrigleys.postgresql.org> References: <20171220094958.25744.94506@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Wed, 20 Dec 2017 09:49:58 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12153.1513784376.1@sss.pgh.pa.us> Date: Wed, 20 Dec 2017 10:39:36 -0500 Message-ID: <12154.1513784376@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > memset(result->t_data, 0, offsetof(HeapTupleHeaderData, t_infomask2)); > /* when memset return, result->t_data->t_len value lost > should append code: > HeapTupleHeaderSetDatumLength(result->t_data, len); > */ As with #14985, you haven't shown any reason why this is a good change to make. regards, tom lane