pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: bucoo@sohu.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14984: function "heap_tuple_from_minimal_tuple" lost HeapTupleHeader->t_len value
Date: Wed, 20 Dec 2017 10:39:36 -0500
Message-ID: <12154.1513784376@sss.pgh.pa.us> (raw)
In-Reply-To: <20171220094958.25744.94506@wrigleys.postgresql.org>
References: <20171220094958.25744.94506@wrigleys.postgresql.org>

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> 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




view thread (3+ messages)

Message-ID: <12154.1513784376@sss.pgh.pa.us>
Permalink:  ../12154.1513784376@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12154.1513784376@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bucoo@sohu.com
  Subject: Re: BUG #14984: function "heap_tuple_from_minimal_tuple" lost HeapTupleHeader->t_len value
  In-Reply-To: <12154.1513784376@sss.pgh.pa.us>
  References: <20171220094958.25744.94506@wrigleys.postgresql.org> <12154.1513784376@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox