I continue to extract data as promised, but I think I see some pattern. "chicken or egg" To work with the NPGSQL library, I created a cast. They are created after the views in which I use them. Here is the order 279: CREATE TYPE bpd.cclass_prop 4646: CREATE VIEW bpd.vclass_prop 4784: CREATE FUNCTION bpd.int_cast_vclass_prop_to_cclass_prop(ivclass_prop bpd.vclass_prop) RETURNS bpd.cclass_prop 4803: CREATE VIEW bpd.int_class_ext AS SELECT cp.id_class AS id, array_agg((cp.*)::bpd.cclass_prop ORDER BY cp.sort) AS property_list FROM bpd.vclass_prop cp GROUP BY cp.id_class; 89428: CREATE CAST (bpd.vclass_prop AS bpd.cclass_prop) WITH FUNCTION bpd.int_cast_vclass_prop_to_cclass_prop(bpd.vclass_prop);
lost views: "int_class_ext" "int_doc_category_ext" "int_doc_file_ext" "int_doc_link_ext" "int_object_ext" "vclass_ext" "vdocument_ext" "vobject_general_ext"