Does TOAST really compress the complete row? - Mailing list pgsql-general

From Thomas Kellerer
Subject Does TOAST really compress the complete row?
Date
Msg-id ec56843a-dd32-ed81-872d-f10247c8a7e0@gmx.net
Whole thread Raw
Responses Re: Does TOAST really compress the complete row?
List pgsql-general
I am confused about one claim in this blog post:
https://www.2ndquadrant.com/en/blog/oracle-to-postgresql-binary-objects

> All columns that come after data > 2000 bytes participate in The
> Large Attribute Strorage Technique (TOAST). This storage is for the
> row, not the column. Your id column comes as the last column in the
> table? Whoopsie, your primary key just got shoved into blob storage
I always was under the impression that TOASTing only happens on column level, not on row level.
The manual does not mention anything about the whole row being TOASTed if one column exceeds the threshold.

Can someone clarify please?

Thomas




pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Different results from identical matviews
Next
From: Anders Steinlein
Date:
Subject: Re: Different results from identical matviews