| From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org |
| Cc: | bucoo(at)sohu(dot)com |
| Subject: | BUG #14985: ExecCopySlotTuple not set "type id" and "type mod" when from minial tuple" |
| Date: | 2017-12-20 10:05:40 |
| Message-ID: | 20171220100540.25742.92719@wrigleys.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 14985
Logged by: bucoo hsiao
Email address: bucoo(at)sohu(dot)com
PostgreSQL version: 10.1
Operating system: all
Description:
HeapTuple
ExecCopySlotTuple(TupleTableSlot *slot)
{
/*
* sanity checks
*/
Assert(slot != NULL);
Assert(!slot->tts_isempty);
/*
* If we have a physical tuple (either format) then just copy it.
*/
if (TTS_HAS_PHYSICAL_TUPLE(slot))
return heap_copytuple(slot->tts_tuple);
if (slot->tts_mintuple)
return heap_tuple_from_minimal_tuple(slot->tts_mintuple);
/* should be:
if (slot->tts_mintuple)
{
HeapTuple result =
heap_tuple_from_minimal_tuple(slot->tts_mintuple);
HeapTupleHeaderSetTypeId(result->t_data,
slot->tts_tupleDescriptor->tdtypeid);
HeapTupleHeaderSetTypMod(result->t_data,
slot->tts_tupleDescriptor->tdtypmod);
return result;
}
*/
...
}
| From | Date | Subject | |
|---|---|---|---|
| Next Message | PG Bug reporting form | 2017-12-20 12:20:32 | BUG #14986: -2147483648 is minimum value of integer but -2147483648::integer fails (out of range). |
| Previous Message | PG Bug reporting form | 2017-12-20 09:49:58 | BUG #14984: function "heap_tuple_from_minimal_tuple" lost HeapTupleHeader->t_len value |