> I think we need something like the attached to make the dependencies work. > > I'm a bit worried about breaking some extensions if were to backpatch this. So > I'm somewhat inclined to just fix this in master.
pg_plan_advice also seems to be affected and is missing from the original patch, a generic fix like this handles that too and all future cases.
