Hannu Krosing <hannu(at)skype(dot)net> writes:
> Does ALTER TABLE SET TABLESPACE lock the table
It had better ... see nearby discussion about relaxing locking for
TRUNCATE. Exactly the same problem that at commit we'd be cutting
the ground out from under any concurrent query.
regards, tom lane