Index: schema/pgFunction.cpp
===================================================================
--- schema/pgFunction.cpp	(revision 7582)
+++ schema/pgFunction.cpp	(working copy)
@@ -398,7 +398,7 @@
             // Create the new object
             if (isProcedure)
                 function = new pgProcedure(schema, functions->GetVal(wxT("proname")));
-            else if (typname == wxT("\"trigger\""))
+            else if (typname == wxT("\"trigger\"") || typname == wxT("trigger"))
                 function = new pgTriggerFunction(schema, functions->GetVal(wxT("proname")));
             else
                 function = new pgFunction(schema, functions->GetVal(wxT("proname")));
