48 Commits

Author SHA1 Message Date
Josh Kupershmidt
27ea0fabe4 Several documentation updates for the pending 1.2 release:
* More mentions of new --only-indexes feature
 * Note we now support up to Postgres 9.3, and get rid of outdated list
   of supported operating systems. (As far as we know, pg_repack should
   build on any platforms supported by PostgreSQL itself, although no one
   has tested the Windows build in a long time.)
 * Remove most of the warnings about data corruption possible with concurrent
   DDL: this should no longer be a concern now that we hold an ACCESS SHARE
   lock during full-table repacks. Keep a short warning about old versions
   being susceptible to this problem, just to make clear that it's fixed now
   and as an enticement to upgrade.
 * A few grammar, phrasing, and typo fixes
2013-07-05 21:02:28 -04:00
Josh Kupershmidt
1c82aaefd9 Documentation updates for indexes-only mode.
Beena Emerson, with some additional cleanup from me.
2013-06-29 10:13:05 -04:00
Daniele Varrazzo
52e7761343 Fixed doc formatting and dropped stale diagnostics entries 2013-04-18 02:49:56 +01:00
Daniele Varrazzo
0e74882429 Had to shorten the tablespace metavar
In the rst docs two spaces are required between option and doc.
2013-04-17 09:17:35 +01:00
Daniele Varrazzo
42c65d16f8 Merge branch 'change-tablespace'
Conflicts:
	bin/pg_repack.c
	doc/pg_repack.rst
2013-04-17 09:07:09 +01:00
Daniele Varrazzo
7617e07f10 Options sorted in a slightly more rational order
--no-order now is almost useless, but list it next to --order-by.
--jobs only specifies how to do something, not what to do. On the
same basis probably --no-analyze should be pushed further up.
2013-04-17 01:44:50 +01:00
Daniele Varrazzo
8efbd9e1c6 Imply --no-order for non-clustered tables
--no-order can still be specified to VACUUM FULL a clustered tables
(not so useful I guess...)

Fixes issue #6.
2013-04-17 01:42:22 +01:00
Daniele Varrazzo
1d62d8d0c5 More helpful error messages in case of conflicting triggers
Closes issue #5.
2013-04-17 00:57:01 +01:00
Daniele Varrazzo
127d5cbfb2 Added missing entries to the pg_repack 1.2 changes 2013-04-16 23:50:52 +01:00
Daniele Varrazzo
b6bd078e92 Added documentation for --tablespace and --moveidx 2013-04-16 23:39:51 +01:00
Josh Kupershmidt
2e4ac733c1 Fix up buggy initialization code for poll() and select().
Also some logging and variable name cleanup.
2012-12-14 18:49:00 -07:00
Josh Kupershmidt
d43ff3cd24 Add description of --jobs to the docs. Also, add missing newline in --help output. 2012-12-14 18:49:00 -07:00
Daniele Varrazzo
c395f72a1c Some docs clarification if you find a stray trigger 2012-12-01 12:50:27 +00:00
Daniele Varrazzo
7e4f811381 Style of definitions lists in the docs improved 2012-11-22 23:23:30 +00:00
Josh Kupershmidt
06a38f4a99 Typofix from last commit. 2012-11-19 07:42:21 -07:00
Daniele Varrazzo
c756d13a55 Docs cleanup by Josh 2012-11-19 11:13:33 +00:00
Daniele Varrazzo
520870ca2e Try rst2html.py too to render the docs 2012-11-19 11:07:00 +00:00
Daniele Varrazzo
580307f79e Mention Slony fix for pg_repack 1.1.8 (issue #4) 2012-11-16 22:32:59 +00:00
Daniele Varrazzo
deaae7dd72 Added version_sql() function and consistency check of sql version 2012-11-16 21:32:28 +00:00
Daniele Varrazzo
1bcaf267b3 Stop database processing if library version doesn't match the binary
Actually this leaves out the case of the SQL schema not consistent with the
library/binary installed, and this is a relatively likely case:
the user has run "make install" but the repack schema was already loaded
from an older version.
2012-11-15 23:32:21 +00:00
Daniele Varrazzo
c43b6bdceb More consistent error reporting
repack_all_database can return an error message: in case of any error different
from "missing schema" return the error and keep processing the other databases
instead of printing and stopping the program.

The output of the program is now something like:

    $ pg_reorg --all
    pg_reorg: reorg database "contrib_regression"
    pg_reorg: reorg database "template1" ... skipped: pg_reorg is not installed in the database
2012-11-15 23:32:21 +00:00
Daniele Varrazzo
8b3f64f0fc Added PGXN URL for download and pgxn client usage docs 2012-11-15 15:40:50 +00:00
Daniele Varrazzo
258ca24986 Docs title and mission uniformed with the README
Also reduced excessive left padding in Contents box.
2012-11-15 12:04:49 +00:00
Daniele Varrazzo
a926623e74 A few doc typos fixed 2012-11-15 00:58:58 +00:00
Daniele Varrazzo
ec28c2772f Mention partial index issue fixed in docs 2012-11-15 00:19:29 +00:00
Daniele Varrazzo
ef2c7da4a5 Doc page reordered in a more logical order
Requirements, Installation, Usage, Examples, etc.
2012-11-13 14:33:08 +00:00
Daniele Varrazzo
4f9269cab8 Improvements to the install section of the docs
Fixed cleanup procedure with EXTENSION, added uninstall section.
2012-11-13 14:07:43 +00:00
Daniele Varrazzo
532be6ea25 Provide a single way to install pg_repack
Provide only CREATE EXTENSION support on PG >= 9.1 and only the sql script on
PG < 9.1.

Also dropped the /echo cruft in the extension script: it is broken on pg 9.1
and 9.1.1, and because the script is not installed on versions that don't
support CREATE EXTENSION it is just not terribly useful.
2012-11-12 01:04:46 +00:00
Daniele Varrazzo
db1c554f60 Dropped executable flags 2012-11-11 02:48:46 +00:00
Daniele Varrazzo
cc622aefae Project homepage set to http://reorg.github.com/pg_repack/ 2012-11-11 02:38:09 +00:00
Daniele Varrazzo
1707d3add2 Dropped mention to PG 8.2 in master 2012-11-11 01:30:12 +00:00
Daniele Varrazzo
b3a86e3fee Documentation converted to reST
I had to drop the Japanese doc, but I'd be happy to restore it in reST format.
2012-11-11 01:30:05 +00:00
Daniele Varrazzo
b7799c1782 Fork the pg_repack extension 2012-11-10 22:33:57 +00:00
Daniele Varrazzo
2226f2011d Documentation fixes for the English and Japanese HTML doc pages
* Get rid of duplicate documentation for "-Z" option
  * standardize which section "--all" appears under
  * note that 9.2 is a supported Postgres version
  * turn HTML docs into valid HTML 4.01

Commit by Josh Kupershmidt. Performed by me as git am was failing to apply
this patch.
2012-09-22 20:00:53 +01:00
Takahiro Itagaki
815dd72774 Fix docs. 2011-08-07 04:24:39 +00:00
Takahiro Itagaki
aad43aa1ae version 1.1.7. Supports 9.2dev. 2011-08-07 04:20:23 +00:00
Takahiro Itagaki
960930b645 Fixed database corruption when target tables have dropped columns, and
there are views or functions depending on columns after dropped ones.
The issue was reported by depesz, and original patch by Denish Patel.

Improved documentation how to build binaries from source.

COPYRIGHT updated.
2011-04-29 05:06:48 +00:00
Takahiro Itagaki
8ab15f2e72 Add documentation to build the module with pgxs. 2010-07-09 04:54:27 +00:00
Takahiro Itagaki
d490a1b458 Fix -w and -W options. They were inverted. 2010-06-18 01:12:28 +00:00
Takahiro Itagaki
79757ccb62 version 1.1.2. 2010-06-01 07:35:01 +00:00
Takahiro Itagaki
78b0a0e374 Fix two bugs.
#1010789 : pg_reorg 1.1.0 and "unexpected toast relations"
#1010790 : reorg.get_index_keys() does not handle composite indexes
2010-04-21 09:25:20 +00:00
Takahiro Itagaki
f3873ff55b pg_reorg version 1.1.0.
- Add wait-timeout option and use SET statement_timeout instead of NOWAIT.
  This can avoid infinite NOWAIT loops to reorganize heavily accessed tables.
- Support native build with MSVC on Windows.
2010-03-25 07:13:16 +00:00
Takahiro Itagaki
7084ec6de9 version 1.0.7. 2010-01-28 06:02:28 +00:00
Takahiro Itagaki
038c07523a Support reorganizing tables with non-default operator class. 2009-12-28 08:25:00 +00:00
Takahiro Itagaki
5fe3f037be version 1.0.5.
- Disable autovacuum for working tables and update logs.
- Do ANALYZE automatically after reorg unless -Z, --no-analyze option
  is specified.
2009-05-25 07:06:38 +00:00
Takahiro Itagaki
e1011e11fe Modify LOCK to LOCK-NOWAIT-and-loop at swap tables to avoid holding exclusive locks long time. Suggested by Kenny Gorman. 2009-04-16 06:01:01 +00:00
Takahiro Itagaki
29469f40f9 Move drop function calls to another transaction which doesn't have execlusive locks. 2009-01-19 04:28:21 +00:00
Takahiro Itagaki
8af8be23ac Initial revision 2008-12-08 04:32:10 +00:00