Merge in Pull Request #20 from Steeve Lennmark.
Adds support for repacking only the tables in a specified schema. This doesn't support --only-indexes mode, but that seems alright for now. Fix merge conflicts, and make a few tweaks along the way: * bump version to 1.3-dev0 * add Beena to list of maintainers * documentation wordsmithing * fix up the INFO message printed for each index in --index or --only-indexes mode, so that it is only printed once per index, and prints the name of the original index, not that of the transient index_%u name.
This commit is contained in:
@ -117,6 +117,7 @@ The following options can be specified in ``OPTIONS``.
|
||||
Options:
|
||||
-a, --all repack all databases
|
||||
-t, --table=TABLE repack specific table only
|
||||
-c, --schema=SCHEMA repack tables in specific schema only
|
||||
-s, --tablespace=TBLSPC move repacked tables to a new tablespace
|
||||
-S, --moveidx move repacked indexes to *TBLSPC* too
|
||||
-o, --order-by=COLUMNS order by columns instead of cluster keys
|
||||
@ -155,6 +156,11 @@ Reorg Options
|
||||
reorganized by writing multiple ``-t`` switches. By default, all eligible
|
||||
tables in the target databases are reorganized.
|
||||
|
||||
``-c``, ``--schema``
|
||||
Repack the tables in the specified schema(s) only. Multiple schemas may
|
||||
be repacked by writing multiple ``-c`` switches. May be used in
|
||||
conjunction with ``--tablespace`` to move tables to a different tablespace.
|
||||
|
||||
``-o COLUMNS [,...]``, ``--order-by=COLUMNS [,...]``
|
||||
Perform an online CLUSTER ordered by the specified columns.
|
||||
|
||||
@ -438,6 +444,7 @@ Releases
|
||||
* pg_repack 1.3
|
||||
|
||||
* Added ``--dry-run`` to do a dry run.
|
||||
* Added ``--schema`` to repack only the specified schema.
|
||||
|
||||
* pg_repack 1.2
|
||||
|
||||
|
Reference in New Issue
Block a user