Re: "Truncated" tuples for tuple hash tables - Mailing list pgsql-hackers

From Bort, Paul
Subject Re: "Truncated" tuples for tuple hash tables
Date
Msg-id DB106B1B5B8F734B8FF3E155A3A556C202D4FC40@clemail1.tmwsystems.com
Whole thread Raw
In response to "Truncated" tuples for tuple hash tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: "Truncated" tuples for tuple hash tables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane said:
>
> To make use of a TruncatedTuple, we'd set up a temporary HeapTupleData
> struct with its t_data field pointing 16 bytes before the start of the
> TruncatedTuple.  As long as the code using it never tries to
> access any
> of the missing fields (t_xmin through t_ctid), this would work exactly
> like a normal HeapTuple.
>

This sounds like a security risk. What's the worst thing that could be
in
those 16 bytes, and could that be used to bite (sorry) us?

If those 16 bytes could be user data in another tuple, there might be an
attack there.



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: vacuum, performance, and MVCC
Next
From: Bruce Momjian
Date:
Subject: Re: vacuum, performance, and MVCC