More helpful error messages in case of conflicting triggers

Closes issue #5.
This commit is contained in:
Daniele Varrazzo
2013-04-17 00:53:54 +01:00
parent 127d5cbfb2
commit 1d62d8d0c5
3 changed files with 38 additions and 9 deletions

View File

@ -217,6 +217,7 @@ CREATE FUNCTION repack.conflicted_triggers(oid) RETURNS SETOF name AS
$$
SELECT tgname FROM pg_trigger
WHERE tgrelid = $1 AND tgname >= 'z_repack_trigger'
ORDER BY tgname;
$$
LANGUAGE sql STABLE STRICT;