save information about triggers even when context is detached
When a table was registered in a detached context, then information about trigger functions was no saved. The information is required because there are situations when triggers are automatically removed by postgres (i.e during a table deletion), and we need to make cleanup in situation when there are not triggers but their functions still exists.