355 Commits

Author SHA1 Message Date
Masahiko Sawada
a6cbf0577b Merge pull request #118 from MasahikoSawada/fix_doc_jp
Update pg_repack_jp.rst
2017-03-23 20:07:12 +03:00
Masahiko Sawada
462c37c57e Update pg_repack_jp.rst
Since v1.3.3, when Japanese doc has been introduced, this
file had not been maintained.
2017-03-23 10:50:02 +09:00
masahiko
7c8e272b54 Merge pull request #114 from bossartn/no_superuser_check
Introduce --no-superuser-check option.
2017-03-08 10:49:11 +09:00
Nathan Bossart
1f784089a6 Added regression testing for --no-superuser-check option. 2017-03-02 02:58:41 +00:00
bossartn
7471eeaa0c Merge branch 'master' into no_superuser_check 2017-03-01 08:34:29 -08:00
masahiko
b329f9e143 Merge pull request #108 from MasahikoSawada/dont_kill_backend
Introduce --no-kill-backend option.
2017-02-23 09:39:36 +09:00
Masahiko Sawada
9ef8f9f80b Improve error message more explicitely when time out.
This change distinguishes error message between failed to cancel
query due to time out and abandoning to cancel query due to timeout.
2017-02-22 06:03:54 +00:00
Masahiko Sawada
d1d3d774d3 Update Japanese documentation for no-kill-backend option. 2017-02-22 06:03:09 +00:00
Masahiko Sawada
f6c1304c36 Change the option name to no-kill-backend.
For consistency with other slimilar option such as no-order,
no-analyze.
2017-02-22 03:49:04 +00:00
masahiko
5781aabb61 Merge pull request #107 from MasahikoSawada/change_to_after_trigger
Change trigger type to AFTER trigger.
2017-02-22 12:08:32 +09:00
masahiko
b16886d4ea Merge pull request #116 from MasahikoSawada/fix_format_ident
Change format identifier %lu to UINT64_FORMAT for portability.
2017-02-22 00:06:01 +09:00
Josh Kupershmidt
0ee4dca044 Merge pull request #115 from cpaelzer/fix-feb2017-pg-microrelease
Fix 'tablespace' regression test for latest postgres minor releases
2017-02-21 08:52:18 -05:00
Masahiko Sawada
e8d6b6b97f Change format identifier %lu in pgut.c file. 2017-02-21 12:23:18 +00:00
Masahiko Sawada
b9219be7d8 Change format identifier to UINT64_FORMAT.
Change it for portability.
2017-02-21 16:20:38 +09:00
Christian Ehrhardt
02ced4650a
drop Debian specific content from tablespace_2.out
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2017-02-20 09:13:58 +01:00
Christian Ehrhardt
b85831ea65
Add a variant expected output for the 'tablespace' regression test
The recent stable update changed output for calls to
repack.repack_indexdef with the third arg being NULL.

Output gets an additional "TABLESPACE pg_default". So add
another variant of expected output to cover 9.6.2, 9.5.6,
9.4.11 and 9.3.16.

Stable update at https://www.postgresql.org/about/news/1733/

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
2017-02-15 11:30:58 +01:00
Nathan Bossart
168676b3b6 Introduce --no-superuser-check option.
The current client checks for superuser before attempting to
execute pg_repack commands. In Amazon RDS, customers are given
access to a psuedo-superuser role called rds_superuser, but they
are not given access to superuser. However, rds_superusers will
otherwise have the ability to execute pg_repack commands in RDS.

This change introduces the --no-superuser-check option in the
client code so that users can disable the client-side superuser
checks.
2017-02-15 03:15:03 +00:00
Josh Kupershmidt
dfbedb63d9 Merge pull request #110 from MasahikoSawada/change_format_identifier
Change format identifier of SPI_processed to uint64.
2017-02-02 22:36:47 -05:00
Masahiko Sawada
bacf197a7b Change format identifier of SPI_processed to uint64.
Because commit 23a27b039d94ba359286694831eafe03cd970eef has extended the
type of SPI_processed from uint32 to uint64, pg_repack emit warning when
compiling with PostgreSQL 9.6 or later. To fix that, we cast it to uint64
and change format identifier from %d to %lu.
2017-02-02 23:42:44 +09:00
Masahiko Sawada
ff8cb96c74 Add white space to COUNT_COMPETING_LOCKS sql.
Pointed out by schmiddy.
2017-02-02 19:59:18 +09:00
Masahiko Sawada
34c6506f54 Introduce --dont-kill-backend option.
pg_repack needs to take an exclusive lock at the end of the
reorganization. If the lock cannot be taken after duration
--wait-timeout option specified and this option is true,
pg_repack gives up to repack a target table instead of
cancelling conflicting backend. False by default.
2017-01-24 14:47:00 +09:00
Masahiko Sawada
375f03c0c3 Change trigger name from a_repack_trigger to repack_trigger.
In AFTER trigger context, since triggered tuple is not changed by
any other triggers we can call it just repack_trigger.
2017-01-24 14:09:05 +09:00
Masahiko Sawada
d83ee3d6a0 Change trigger type to AFTER trigger.
During repacking table, if a transaction executes INSERT CONFLICT
ON UPDATE/DO NOTHING, because we define BEFORE trigger on target
table, the contents of operation log table becomes inconsistent
easliy. As a result, pg_reapck fails with a high probability.

To resolve this issue, this changes the trigger type from BEFORE
to AFTER. We define AFTER trigger that is the first of the AFTER
trigger to fire on the table.
2017-01-19 16:32:54 +09:00
Josh Kupershmidt
e1056c003c Merge pull request #104 from MasahikoSawada/support_9_6
Add 9.6 to list as a supported Postgres version.
2017-01-17 08:54:33 -05:00
Masahiko Sawada
6cadd7d97d Add 9.6 to list as a supported Postgres version.
Since 9.5 is not listed yet in pg_repack_jp.rst added 9.5 as well.
2017-01-17 14:28:21 +09:00
Josh Kupershmidt
8711ae5b2a Merge branch 'master' of github.com:reorg/pg_repack 2016-08-05 13:26:18 -07:00
Josh Kupershmidt
6e9ccbd8a0 Remember to list 9.5 as a supported Postgres version. 2016-08-05 13:25:08 -07:00
Josh Kupershmidt
8db0f58daf Merge pull request #87 from postgrespro/vacuum_fix
Don't wait for concurrent vacuums
2016-08-05 13:12:06 -07:00
Alexander Korotkov
8e50927946 Comment about VACUUM. 2016-07-03 22:42:17 +03:00
Alexander Korotkov
3b0ef954cf Fix. 2016-07-03 21:19:45 +03:00
Josh Kupershmidt
fe659b0e4a Version bump for 1.3.4 2016-05-07 09:44:26 -04:00
Josh Kupershmidt
b8b18c0cc9 Prep release notes for release 1.3.4. 2016-05-07 09:43:28 -04:00
Josh Kupershmidt
602bf2944a .gitignore for lib/exports.list 2016-05-07 09:25:30 -04:00
Josh Kupershmidt
eb2e9c39fb Whitespace cleanup. 2016-05-07 09:24:05 -04:00
Josh Kupershmidt
de060af137 Merge branch 'medallia-medallia_xlock_for_drop' 2016-05-07 09:20:23 -04:00
Edwina Lu
dcce8e43e9 grab exclusive lock before dropping table 2016-04-15 14:34:41 -07:00
Josh Kupershmidt
0d84624b92 Merge pull request #74 from amitlan/update-release-notes
Add release notes for 1.3.2 and 1.3.3 releases.
2016-02-27 16:20:20 -05:00
amit
abb6f002e7 Add release notes for 1.3.2 and 1.3.3 releases. 2016-02-26 10:54:01 +09:00
Josh Kupershmidt
7238a15a9c Merge pull request #72 from j16sdiz/patch-1
Do not repack unlogged tables (close #71)
2016-02-16 16:54:05 -05:00
Daniel Cheng (鄭郁邦)
71f8833958 Do not repack unlogged tables (close #71) 2016-02-12 18:50:45 +08:00
Josh Kupershmidt
1b5fd1ae70 Bump version to 1.3.3 2016-02-07 17:58:18 -05:00
Josh Kupershmidt
766722f2fe Merge branch 'amitlan-reg-tests-relopt-quote-fix' 2016-01-24 17:56:20 -05:00
Josh Kupershmidt
4002b4e18f Add a variant expected output for the 'repack' regression test
so that older versions of Postgres (pre-c7e27bec) will still
pass tests.

Also fix the 'tablespace' test the same way.
2016-01-24 17:54:48 -05:00
amit
ab70a010a5 Fix regression test output.
Upstream changes now cause reloption values to be emitted with surrounding
quotes. That breaks, for example, the output of \d commands in one of the
tests.
2016-01-19 09:30:10 +09:00
amit
e4033c273e Need to #include pg_am.h directly now to use BTREE_AM_OID.
Due to upstream changes to the index AM API definitions.
2016-01-18 20:55:57 +09:00
Josh Kupershmidt
668e44e256 Merge pull request #61 from bwtakacy/jp-doc
Add doc in Japanese
2015-12-14 15:33:32 -05:00
bwtakacy
b0be609adf Add doc in Japanese 2015-12-07 12:32:13 +09:00
Josh Kupershmidt
2b3a026372 Merge pull request #56 from amitlan/issue-55-fix
Make repack_drop() processing robust against deadlocks.
2015-12-02 23:58:48 -05:00
amit
cbe027289a Consider schemaname too when doing LOCK TABLE in repack_drop().
This was an oversight in a previous commit to fix the deadlock reported
in Github issue #55.
2015-12-03 13:32:03 +09:00
Josh Kupershmidt
87dca1c85c Merge pull request #59 from bwtakacy/change_exit_code
Change exit code for --help and --version.
2015-11-30 10:14:46 -05:00