Denis Perchine <dyp(at)perchine(dot)com> writes:
> you wrote. Except VARATT_IS_EXTENDED check (is it neccessary, can I store
> data and be sure that it is not toasted? I do not like this for BLOBs).
Yes, it's necessary *and* appropriate. LO data won't be moved off,
because pg_largeobject doesn't have a toast table (unless the user makes
one), but it can be compressed.
> All other seems the same... Please give me an example of this check...
The loop only has to loop till it finds a valid tuple.
regards, tom lane