Commit Graph

  • 109689586e Fixed access to uninit'd mem in repack_indexdef Daniele Varrazzo 2013-04-22 00:48:53 +01:00
  • 52e7761343 Fixed doc formatting and dropped stale diagnostics entries Daniele Varrazzo 2013-04-18 02:49:56 +01:00
  • fb07fad34a Make sure to close the transactions after repack_one_table Daniele Varrazzo 2013-04-18 02:29:51 +01:00
  • 54ba3c19cd Install plpgsql on test databases 8.3 and 8.4 Daniele Varrazzo 2013-04-18 01:32:05 +01:00
  • a2138b6d7d Ignore AFTER triggers sorting after z_repack_trigger Daniele Varrazzo 2013-04-18 01:22:24 +01:00
  • 477fba884c Ignore AFTER triggers sorting after z_repack_trigger Daniele Varrazzo 2013-04-17 19:10:24 +01:00
  • 14c4d4653e Make the version number arith without using bc Daniele Varrazzo 2013-04-18 01:10:22 +01:00
  • dd06f25930 Tests on COLLATE only run on PG versions supporting it Daniele Varrazzo 2013-04-18 00:34:44 +01:00
  • c314cbda75 Check PostgreSQL version number as number in the makefile Daniele Varrazzo 2013-04-18 00:29:23 +01:00
  • 22762fce28 Fixed query for PG 8.3 Daniele Varrazzo 2013-04-17 22:07:54 +01:00
  • db40e71abc Fixed query for PG 8.4 Daniele Varrazzo 2013-04-17 22:07:36 +01:00
  • 3d0b02c654 Try to repack all tables with pkey, not only the ones with ckey Daniele Varrazzo 2013-04-17 18:56:50 +01:00
  • b3304b8a69 Merge branch 'logging-cleanup' Daniele Varrazzo 2013-04-17 18:36:23 +01:00
  • 08a8c943e5 Logging the table we are working on at info level Daniele Varrazzo 2013-04-17 17:48:05 +01:00
  • 5773c75b58 Using elog instead of printf to report what database we are on Daniele Varrazzo 2013-04-17 17:47:44 +01:00
  • 4a3f42ab70 Dropped unneeded error check Daniele Varrazzo 2013-04-17 17:46:15 +01:00
  • 2335a4da82 Dropped redundant check for missing schema Daniele Varrazzo 2012-11-23 01:39:20 +00:00
  • 700a1a6c48 More explicit error message if the version functions are not found Daniele Varrazzo 2012-11-23 00:55:53 +00:00
  • 0e74882429 Had to shorten the tablespace metavar Daniele Varrazzo 2013-04-17 09:17:35 +01:00
  • 42c65d16f8 Merge branch 'change-tablespace' Daniele Varrazzo 2013-04-17 09:07:09 +01:00
  • 7617e07f10 Options sorted in a slightly more rational order Daniele Varrazzo 2013-04-17 01:44:50 +01:00
  • 8efbd9e1c6 Imply --no-order for non-clustered tables Daniele Varrazzo 2013-04-17 01:42:22 +01:00
  • 1d62d8d0c5 More helpful error messages in case of conflicting triggers Daniele Varrazzo 2013-04-17 00:53:54 +01:00
  • 127d5cbfb2 Added missing entries to the pg_repack 1.2 changes Daniele Varrazzo 2013-04-16 23:50:52 +01:00
  • b6bd078e92 Added documentation for --tablespace and --moveidx Daniele Varrazzo 2013-04-16 23:39:51 +01:00
  • d98a14bb55 Fixed index definition tokenization Daniele Varrazzo 2013-04-16 23:23:26 +01:00
  • 83fdb2a9e0 Added implementation for --moveidx Daniele Varrazzo 2013-04-16 20:17:51 +01:00
  • 43dfe229c9 Added check for target tablespace existence Daniele Varrazzo 2013-04-16 19:14:49 +01:00
  • a6e50515ce Merge branch 'master' into change-tablespace Daniele Varrazzo 2013-04-16 22:40:43 +01:00
  • e9339f44ea Merge branch 'issue-3' Daniele Varrazzo 2013-04-16 22:36:40 +01:00
  • c542bf2641 Added tests for the namespace change feature Daniele Varrazzo 2013-04-16 18:33:23 +01:00
  • 6488ecabd2 Added --moveidx command line option Daniele Varrazzo 2013-04-16 18:32:46 +01:00
  • 6710e514db Added --namespace option to set the namespace of repacked tables Daniele Varrazzo 2013-02-21 17:10:12 +00:00
  • 89031f9cc5 Dropped unused indexes info Daniele Varrazzo 2013-02-21 15:45:02 +00:00
  • f9dc02191d Dropped bogus check and unused parameters allocation Daniele Varrazzo 2013-02-21 15:06:39 +00:00
  • 7a31f4fbf6 comment typofix. Josh Kupershmidt 2013-02-20 20:26:48 -07:00
  • f551b56f1a Merge branch 'master' into concurrent_indexes. Josh Kupershmidt 2012-12-14 22:17:36 -07:00
  • 7213e2fe7b Use CLEARPGRES() macro to call PQclear() and set res to NULL. This simplifies some of the error handling blocks, as now we can unconditionally use this macro without worrying about multiple PQclear() calls causing a double-free(). Josh Kupershmidt 2012-12-14 20:13:23 -07:00
  • aa428b68c8 Merge branch 'concurrent_indexes' of github.com:schmiddy/pg_repack into concurrent_indexes Josh Kupershmidt 2012-12-14 18:52:16 -07:00
  • 2e4ac733c1 Fix up buggy initialization code for poll() and select(). Also some logging and variable name cleanup. Josh Kupershmidt 2012-12-14 18:17:45 -07:00
  • d43ff3cd24 Add description of --jobs to the docs. Also, add missing newline in --help output. Josh Kupershmidt 2012-12-13 21:10:59 -07:00
  • 4f25c26284 restore the warning message about invalid indexes, to match old behavior and pass installcheck. Josh Kupershmidt 2012-12-13 19:56:44 -07:00
  • a1821e3dcb Several fixes for concurrent index builds: * Use poll() if it is available, or select() otherwise, to efficiently wait on index builds in worker queries to finish. * fix off-by-one error when initially assigning workers * move PQsetnonblocking() calls to setup_workers() Josh Kupershmidt 2012-12-13 19:12:05 -07:00
  • 8ab54cc803 Small fixes related to the concurrent_indexes changes. Move PQsetnonblocking() call to setup_workers(), and make sure we're not forgetting any workers. Josh Kupershmidt 2012-12-11 19:46:49 -07:00
  • 509e568c52 First pass at implementing concurrent index builds using multiple connections. Josh Kupershmidt 2012-12-10 21:08:01 -07:00
  • 962fdff1af Fix up buggy initialization code for poll() and select(). Also some logging and variable name cleanup. Josh Kupershmidt 2012-12-14 18:17:45 -07:00
  • b9c7189fa9 Add description of --jobs to the docs. Also, add missing newline in --help output. Josh Kupershmidt 2012-12-13 21:10:59 -07:00
  • 4c0c2f3618 restore the warning message about invalid indexes, to match old behavior and pass installcheck. Josh Kupershmidt 2012-12-13 19:56:44 -07:00
  • 42357353a7 Several fixes for concurrent index builds: * Use poll() if it is available, or select() otherwise, to efficiently wait on index builds in worker queries to finish. * fix off-by-one error when initially assigning workers * move PQsetnonblocking() calls to setup_workers() Josh Kupershmidt 2012-12-13 19:12:05 -07:00
  • b4d8a90437 Don't perform repack_cleanup() if we haven't actually set up z_repack_trigger etc. Josh Kupershmidt 2012-12-13 18:55:19 -07:00
  • 8c2dd16608 Small fixes related to the concurrent_indexes changes. Move PQsetnonblocking() call to setup_workers(), and make sure we're not forgetting any workers. Josh Kupershmidt 2012-12-11 19:46:49 -07:00
  • 0bdb4bb96f Missing PQclear(). Josh Kupershmidt 2012-12-11 19:12:57 -07:00
  • 0d984ed3e5 First pass at implementing concurrent index builds using multiple connections. Josh Kupershmidt 2012-12-10 21:08:01 -07:00
  • fcd3f7eaae Added pg_repack runs to check the get_order_by definitions work Daniele Varrazzo 2012-12-09 12:11:10 +00:00
  • 13cf8679db Added support for COLLATE to index keys Daniele Varrazzo 2012-12-09 12:02:49 +00:00
  • 4bcb7641c9 Function get_index_keys() renamed to get_order_by() Daniele Varrazzo 2012-12-09 11:35:52 +00:00
  • 9d776b3980 Likely fix for Issue #4 -- make sure params[] is long enough for two strings. Josh Kupershmidt 2012-12-08 18:57:27 -07:00
  • a47686a7ee Added support for DESC and NULLS FIRST/LAST to index keys Daniele Varrazzo 2012-12-09 01:11:39 +00:00
  • 6fc41e9c1a Fix 'installcheck', since the last commit broke the expected output when the table is missing a valid primary/unique key. Josh Kupershmidt 2012-12-06 21:26:12 -07:00
  • 66ae2f33a7 Downgrade ERROR to WARNING in the case where a table does not have a primary key or not-null unique key. Josh Kupershmidt 2012-12-06 21:05:54 -07:00
  • f6ca290fb2 Support for multiple --tables, as well as Concurrent DDL Guard. Josh Kupershmidt 2012-12-06 20:58:33 -07:00
  • a072cc9812 Ignore other pg_repack clients which may be running concurrently for the purposes of SQL_XID_SNAPSHOT. Josh Kupershmidt 2012-12-06 16:11:55 -07:00
  • 1a0a28d3f8 Bugtrack url changed to pg_repack's one Daniele Varrazzo 2012-12-01 12:57:17 +00:00
  • c395f72a1c Some docs clarification if you find a stray trigger Daniele Varrazzo 2012-12-01 12:19:48 +00:00
  • fbcd24b4e0 Have the client double-check that it is connected as a database superuser before plowing through initialization steps. Josh Kupershmidt 2012-11-30 20:09:22 -07:00
  • 3b856623fd Add comment explaining how race condition between CREATE TABLE ... AS SELECT and recording of log entries is avoided. Josh Kupershmidt 2012-11-29 20:27:33 -07:00
  • d402a73e42 No need to use strlen() with StringInfoData. Josh Kupershmidt 2012-11-26 20:08:47 -07:00
  • 7e4f811381 Style of definitions lists in the docs improved Daniele Varrazzo 2012-11-22 23:23:30 +00:00
  • 06a38f4a99 Typofix from last commit. Josh Kupershmidt 2012-11-19 07:42:21 -07:00
  • c756d13a55 Docs cleanup by Josh Daniele Varrazzo 2012-11-19 11:13:33 +00:00
  • 520870ca2e Try rst2html.py too to render the docs Daniele Varrazzo 2012-11-19 11:07:00 +00:00
  • 3c13a0d05e Don't forget to disconnect conn2 when disconnect() is called, otherwise we leave a connection hanging open for every database processed via pg_repack -a. Josh Kupershmidt 2012-11-18 14:36:09 -07:00
  • 580307f79e Mention Slony fix for pg_repack 1.1.8 (issue #4) Daniele Varrazzo 2012-11-16 22:28:52 +00:00
  • d13f1b141d Merge branch 'version_check' Daniele Varrazzo 2012-11-16 21:32:45 +00:00
  • deaae7dd72 Added version_sql() function and consistency check of sql version Daniele Varrazzo 2012-11-15 23:37:09 +00:00
  • 3c73a0204a More consistent error reporting Josh Kupershmidt 2012-11-15 19:28:23 -07:00
  • 8ba92a1f49 Rename argument to simple_string_list_size() for consistency. Josh Kupershmidt 2012-11-14 19:05:31 -07:00
  • decd822393 Move simple_string_list_size() into pgut.c, with the rest of these string functions. Josh Kupershmidt 2012-11-14 19:02:31 -07:00
  • 40626769d8 Since commit 742380f0429b6 included some of the same changes already in 6a0af679e14d1d, go ahead and include a few more of the error cleanup from 6a0af679e14d1d. Josh Kupershmidt 2012-11-14 20:47:47 -05:00
  • 34605aef27 Fix bogus use of table name parameters. Josh Kupershmidt 2012-11-14 15:27:54 -05:00
  • 00ddb1edf9 Improved error handling, particularly when processing multiple tables. Josh Kupershmidt 2012-11-11 20:20:48 -05:00
  • ad75dcfbb1 Allow multiple --table options to be specified on the command-line. Josh Kupershmidt 2012-11-06 22:07:46 -07:00
  • ad00eb181d Several fixes for concurrent-DDL guard. Josh Kupershmidt 2012-10-23 20:41:46 -07:00
  • cf25780575 Further improvements to concurrent-DDL guard. Josh Kupershmidt 2012-10-20 21:47:21 -07:00
  • 3606e0a957 Switch to using pgut_command() and pgut_execute() for conn2. Josh Kupershmidt 2012-10-20 17:15:17 -07:00
  • 78bae38718 Take an ACCESS SHARE LOCK on the target table, in an initial attempt to prevent concurrent DDL. Josh Kupershmidt 2012-10-20 16:27:54 -07:00
  • e02811689a Fixed non-portable use of sed to parse the version from META Daniele Varrazzo 2012-11-16 10:36:16 +00:00
  • 1bcaf267b3 Stop database processing if library version doesn't match the binary Daniele Varrazzo 2012-10-18 00:43:45 +01:00
  • c43b6bdceb More consistent error reporting Daniele Varrazzo 2012-10-18 00:18:27 +01:00
  • 0af231dff5 Use a single version number for program, library and SQL Daniele Varrazzo 2012-11-15 23:31:58 +00:00
  • ffe5a2b323 Added git repos reference to the META info Daniele Varrazzo 2012-11-15 15:38:35 +00:00
  • 8b3f64f0fc Added PGXN URL for download and pgxn client usage docs Daniele Varrazzo 2012-11-15 15:36:44 +00:00
  • 77d27a14f3 Use the same title of README/docs for the extension Daniele Varrazzo 2012-11-15 13:53:06 +00:00
  • 258ca24986 Docs title and mission uniformed with the README Daniele Varrazzo 2012-11-15 12:04:49 +00:00
  • 292e00835e Use correct homepage link in pg_repack --help Daniele Varrazzo 2012-11-15 11:53:00 +00:00
  • b728d7b9dd README wordsmithing by Josh applied Daniele Varrazzo 2012-11-15 11:39:51 +00:00
  • a926623e74 A few doc typos fixed Daniele Varrazzo 2012-11-15 00:58:58 +00:00
  • ec28c2772f Mention partial index issue fixed in docs Daniele Varrazzo 2012-11-15 00:19:29 +00:00
  • 44bf1543be Don't choose a partial index as primary key Daniele Varrazzo 2012-11-15 00:16:38 +00:00
  • ef2c7da4a5 Doc page reordered in a more logical order Daniele Varrazzo 2012-11-13 14:33:08 +00:00