"SZUCS Gabor" <surrano(at)mailbox(dot)hu> writes:
> Do you have any idea about an explanation? Does vacuum wait for the end of
> each and every transaction?
VACUUM FULL needs an exclusive lock on the target table. So does ALTER
TABLE. So yes, it will wait for any open transaction that has accessed
the table to complete.
regards, tom lane