From c395f72a1c243ee7e1be35a1e27b47512b0f701d Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 1 Dec 2012 12:19:48 +0000 Subject: [PATCH] Some docs clarification if you find a stray trigger --- doc/pg_repack.rst | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/doc/pg_repack.rst b/doc/pg_repack.rst index 319232f..756d1fc 100644 --- a/doc/pg_repack.rst +++ b/doc/pg_repack.rst @@ -323,15 +323,20 @@ ERROR: permission denied for schema repack pg_repack must be executed by a superuser. pg_repack: query failed: ERROR: trigger "z_repack_trigger" for relation "tbl" already exists - The target table already has a trigger named ``z_repack_trigger``. + The target table has already a trigger named ``z_repack_trigger``. This + is probably caused by a previous failed attempt to run pg_repack on the + table, which for some reason failed to clean up the temporary object. - Delete or rename the trigger. + You can remove all the temporary objects by dropping and re-creating the + extension: see the installation_ section for the details. pg_repack: trigger conflicted for tbl - The target table already has a trigger which follows - ``z_repack_trigger`` in alphabetical order. + The target table has a trigger whose name follows ``z_repack_trigger`` + in alphabetical order. - Delete or rename the trigger. + The ``z_repack_trigger`` should be the last BEFORE trigger to fire. + Please rename your trigger to that it sorts alphabetically before + pg_repack's one. Restrictions