pg_reorg can re-organize tables on a postgres database without any locks so that
you can retrieve or update rows in tables being reorganized.
The module is developed to be a better alternative of CLUSTER and VACUUM FULL.
postgres@db-172-16-3-33-> pg_reorg –help
pg_reorg re-organizes a PostgreSQL database.
Usage:
pg_reorg [OPTION]… [DBNAME]
Opti**:
-a, –all reorg all databases
-t, –table=TABLE reorg specific table only
-n, –no-order do vacuum full instead of cluster
-o, –order-by=columns order by columns instead of cluster keys
-T, –wait-timeout=secs timeout to cancel other backends on conflict.
-Z, –no-analyze don’t analyze at end
Connection opti**:
-d, –dbname=DBNAME database to connect
-h, –host=HOSTNAME database server host or socket directory
-p, –port=PORT database server port
-U, –username=USERNAME user name to connect as
-w, –no-password never prompt for password
-W, –password force password prompt
Generic opti**:
-e, –echo echo queries
-E, –elevel=LEVEL set output message level
–help show this help, then exit
–version output version information, then exit