On Mon, Mar 31, 2014 at 4:20 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
I'm suspicious that the problem is exactly lack of pg_depend records --- pg_dump/pg_restore relies on those for correct ordering of parallel operations. What method are you using to create these triggers (not the functions, the per-table pg_trigger records)?
There is a trigger function on the extension's config table that creates the trigger functions and installs them (both from the same function). I am about to try playing with pg_depend to see if it has the desired effect.