"Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
>> Special handling of TOAST relations during VACUUM. TOAST relations
>> are vacuumed while the lock on the master table is still active.
> It seems very dangerous to me.
> When VACUUM of a master table was finished, the transaction is
> in already committed state in many cases.
I don't see the problem. If the toast table doesn't get vacuumed,
no real harm is done other than failing to recover space.
regards, tom lane