postgres cluster table - ghdrako/doc_snipets GitHub Wiki

The CLUSTER clause will rewrite the table in the same order as a btree index. If you are running an analytical workload, this can make sense.

Consider checking out pg_squeeze as well, which is an extension to reorganize a table without extensive table locking.