"Limit  (cost=6914.91..7032.47 rows=1 width=218) (actual time=756.690..1520.019 rows=44 loops=1)"
"  ->  GroupAggregate  (cost=6914.91..7032.47 rows=1 width=218) (actual time=756.688..1519.977 rows=44 loops=1)"
"        ->  Sort  (cost=6914.91..6914.91 rows=1 width=218) (actual time=755.154..758.807 rows=6277 loops=1)"
"              Sort Key: o.title, o.rec_class, o.id_obj, o.id_rec, o.id_rec, o.signum, o.sec_level, o.signature, ((o.hd_from)::text), ((o.hd_to)::text), o.hd_info, o.id_home"
"              Sort Method:  quicksort  Memory: 965kB"
"              ->  Nested Loop Left Join  (cost=0.00..6914.90 rows=1 width=218) (actual time=0.830..708.605 rows=6277 loops=1)"
"                    ->  Nested Loop Left Join  (cost=0.00..2704.38 rows=1 width=214) (actual time=0.621..16.476 rows=44 loops=1)"
"                          ->  Nested Loop  (cost=0.00..2642.19 rows=1 width=214) (actual time=0.438..11.073 rows=44 loops=1)"
"                                ->  Nested Loop  (cost=0.00..2579.80 rows=1 width=222) (actual time=0.252..5.782 rows=44 loops=1)"
"                                      ->  Index Scan using idx_objects_signum on "BS_OBJECTS" o  (cost=0.00..2322.81 rows=20 width=214) (actual time=0.237..5.114 rows=44 loops=1)"
"                                            Index Cond: (id_parent = 2059187)"
"                                            Filter: ((sec_level <= 4) AND (subplan))"
"                                            SubPlan"
"                                              ->  Nested Loop  (cost=0.00..54.10 rows=1 width=0) (actual time=0.109..0.109 rows=1 loops=44)"
"                                                    ->  Nested Loop  (cost=0.00..46.47 rows=1 width=4) (actual time=0.096..0.096 rows=1 loops=44)"
"                                                          ->  Nested Loop  (cost=0.00..41.88 rows=1 width=4) (actual time=0.085..0.085 rows=1 loops=44)"
"                                                                Join Filter: (lo.id_lock = l.id_lock)"
"                                                                ->  Index Scan using fki_ref_objects on "BS_LOCKOBJ" lo  (cost=0.00..39.43 rows=1 width=4) (actual time=0.055..0.055 rows=1 loops=44)"
"                                                                      Index Cond: (id_obj = $2)"
"                                                                      Filter: (subplan)"
"                                                                      SubPlan"
"                                                                        ->  Nested Loop  (cost=1.23..31.13 rows=1 width=0) (actual time=0.045..0.045 rows=1 loops=44)"
"                                                                              ->  Nested Loop  (cost=1.23..23.50 rows=1 width=4) (actual time=0.032..0.032 rows=1 loops=44)"
"                                                                                    ->  Hash Join  (cost=1.23..2.73 rows=3 width=4) (actual time=0.020..0.020 rows=1 loops=44)"
"                                                                                          Hash Cond: (le.id_exc = e.id_exc)"
"                                                                                          ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.46 rows=3 width=4) (actual time=0.010..0.010 rows=1 loops=44)"
"                                                                                                Filter: (id_lock = $4)"
"                                                                                          ->  Hash  (cost=1.10..1.10 rows=10 width=8) (actual time=0.030..0.030 rows=10 loops=1)"
"                                                                                                ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (actual time=0.007..0.018 rows=10 loops=1)"
"                                                                                    ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (actual time=0.007..0.007 rows=1 loops=44)"
"                                                                                          Index Cond: (a.id_res = e.id_res)"
"                                                                                          Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                                                              ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.009..0.009 rows=1 loops=44)"
"                                                                                    Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                                    Filter: acl.acl_grant"
"                                                                ->  Seq Scan on "BS_LOCK" l  (cost=0.00..2.20 rows=20 width=8) (actual time=0.003..0.010 rows=15 loops=44)"
"                                                          ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..4.57 rows=1 width=8) (actual time=0.006..0.006 rows=1 loops=44)"
"                                                                Index Cond: (a.id_res = l.id_res)"
"                                                                Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                                    ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.009..0.009 rows=1 loops=44)"
"                                                          Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                          Filter: acl.acl_grant"
"                                      ->  Index Scan using fki_ref_tree_object on "BS_TREE" t14051109  (cost=0.00..12.84 rows=1 width=8) (actual time=0.007..0.011 rows=1 loops=44)"
"                                            Index Cond: (t14051109.id_obj = o.id_obj)"
"                                            Filter: (t14051109.id_obj = t14051109.id_parent)"
"                                ->  Index Scan using "BS_BES_pkey" on "BS_OBJECTS" o  (cost=0.00..62.38 rows=1 width=4) (actual time=0.116..0.117 rows=1 loops=44)"
"                                      Index Cond: (o.id_obj = t14051109.id_obj)"
"                                      Filter: ((o.sec_level <= 4) AND (subplan))"
"                                      SubPlan"
"                                        ->  Nested Loop  (cost=0.00..54.10 rows=1 width=0) (actual time=0.106..0.106 rows=1 loops=44)"
"                                              ->  Nested Loop  (cost=0.00..46.47 rows=1 width=4) (actual time=0.093..0.093 rows=1 loops=44)"
"                                                    ->  Nested Loop  (cost=0.00..41.88 rows=1 width=4) (actual time=0.083..0.083 rows=1 loops=44)"
"                                                          Join Filter: (lo.id_lock = l.id_lock)"
"                                                          ->  Index Scan using fki_ref_objects on "BS_LOCKOBJ" lo  (cost=0.00..39.43 rows=1 width=4) (actual time=0.052..0.052 rows=1 loops=44)"
"                                                                Index Cond: (id_obj = $6)"
"                                                                Filter: (subplan)"
"                                                                SubPlan"
"                                                                  ->  Nested Loop  (cost=1.23..31.13 rows=1 width=0) (actual time=0.044..0.044 rows=1 loops=44)"
"                                                                        ->  Nested Loop  (cost=1.23..23.50 rows=1 width=4) (actual time=0.031..0.031 rows=1 loops=44)"
"                                                                              ->  Hash Join  (cost=1.23..2.73 rows=3 width=4) (actual time=0.019..0.019 rows=1 loops=44)"
"                                                                                    Hash Cond: (le.id_exc = e.id_exc)"
"                                                                                    ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.46 rows=3 width=4) (actual time=0.009..0.009 rows=1 loops=44)"
"                                                                                          Filter: (id_lock = $4)"
"                                                                                    ->  Hash  (cost=1.10..1.10 rows=10 width=8) (actual time=0.025..0.025 rows=10 loops=1)"
"                                                                                          ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (actual time=0.005..0.014 rows=10 loops=1)"
"                                                                              ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (actual time=0.007..0.007 rows=1 loops=44)"
"                                                                                    Index Cond: (a.id_res = e.id_res)"
"                                                                                    Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                                                        ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.008..0.008 rows=1 loops=44)"
"                                                                              Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                              Filter: acl.acl_grant"
"                                                          ->  Seq Scan on "BS_LOCK" l  (cost=0.00..2.20 rows=20 width=8) (actual time=0.003..0.009 rows=15 loops=44)"
"                                                    ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..4.57 rows=1 width=8) (actual time=0.006..0.006 rows=1 loops=44)"
"                                                          Index Cond: (a.id_res = l.id_res)"
"                                                          Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                              ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.008..0.008 rows=1 loops=44)"
"                                                    Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                    Filter: acl.acl_grant"
"                          ->  Index Scan using "BS_BES_pkey" on "BS_OBJECTS" o  (cost=0.00..62.18 rows=1 width=8) (actual time=0.118..0.119 rows=1 loops=44)"
"                                Index Cond: ((o.id_obj = 2059187) AND (o.id_obj = o.id_parent))"
"                                Filter: ((o.sec_level <= 4) AND (subplan))"
"                                SubPlan"
"                                  ->  Nested Loop  (cost=0.00..54.10 rows=1 width=0) (actual time=0.107..0.107 rows=1 loops=44)"
"                                        ->  Nested Loop  (cost=0.00..46.47 rows=1 width=4) (actual time=0.094..0.094 rows=1 loops=44)"
"                                              ->  Nested Loop  (cost=0.00..41.88 rows=1 width=4) (actual time=0.083..0.083 rows=1 loops=44)"
"                                                    Join Filter: (lo.id_lock = l.id_lock)"
"                                                    ->  Index Scan using fki_ref_objects on "BS_LOCKOBJ" lo  (cost=0.00..39.43 rows=1 width=4) (actual time=0.052..0.052 rows=1 loops=44)"
"                                                          Index Cond: (id_obj = $5)"
"                                                          Filter: (subplan)"
"                                                          SubPlan"
"                                                            ->  Nested Loop  (cost=1.23..31.13 rows=1 width=0) (actual time=0.044..0.044 rows=1 loops=44)"
"                                                                  ->  Nested Loop  (cost=1.23..23.50 rows=1 width=4) (actual time=0.031..0.031 rows=1 loops=44)"
"                                                                        ->  Hash Join  (cost=1.23..2.73 rows=3 width=4) (actual time=0.019..0.019 rows=1 loops=44)"
"                                                                              Hash Cond: (le.id_exc = e.id_exc)"
"                                                                              ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.46 rows=3 width=4) (actual time=0.009..0.009 rows=1 loops=44)"
"                                                                                    Filter: (id_lock = $4)"
"                                                                              ->  Hash  (cost=1.10..1.10 rows=10 width=8) (actual time=0.024..0.024 rows=10 loops=1)"
"                                                                                    ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (actual time=0.004..0.014 rows=10 loops=1)"
"                                                                        ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (actual time=0.007..0.007 rows=1 loops=44)"
"                                                                              Index Cond: (a.id_res = e.id_res)"
"                                                                              Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                                                  ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.009..0.009 rows=1 loops=44)"
"                                                                        Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                        Filter: acl.acl_grant"
"                                                    ->  Seq Scan on "BS_LOCK" l  (cost=0.00..2.20 rows=20 width=8) (actual time=0.003..0.010 rows=15 loops=44)"
"                                              ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..4.57 rows=1 width=8) (actual time=0.006..0.006 rows=1 loops=44)"
"                                                    Index Cond: (a.id_res = l.id_res)"
"                                                    Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                        ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.009..0.009 rows=1 loops=44)"
"                                              Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                              Filter: acl.acl_grant"
"                    ->  Index Scan using idx_objects_signum on "BS_OBJECTS" o  (cost=0.00..4210.05 rows=37 width=8) (actual time=0.119..15.428 rows=143 loops=44)"
"                          Index Cond: (o.id_obj = o.id_parent)"
"                          Filter: ((o.sec_level <= 4) AND (subplan))"
"                          SubPlan"
"                            ->  Nested Loop  (cost=0.00..54.10 rows=1 width=0) (actual time=0.102..0.102 rows=1 loops=6276)"
"                                  ->  Nested Loop  (cost=0.00..46.47 rows=1 width=4) (actual time=0.089..0.089 rows=1 loops=6276)"
"                                        ->  Nested Loop  (cost=0.00..41.88 rows=1 width=4) (actual time=0.079..0.079 rows=1 loops=6276)"
"                                              Join Filter: (lo.id_lock = l.id_lock)"
"                                              ->  Index Scan using fki_ref_objects on "BS_LOCKOBJ" lo  (cost=0.00..39.43 rows=1 width=4) (actual time=0.050..0.050 rows=1 loops=6276)"
"                                                    Index Cond: (id_obj = $7)"
"                                                    Filter: (subplan)"
"                                                    SubPlan"
"                                                      ->  Nested Loop  (cost=1.23..31.13 rows=1 width=0) (actual time=0.041..0.041 rows=1 loops=6276)"
"                                                            ->  Nested Loop  (cost=1.23..23.50 rows=1 width=4) (actual time=0.029..0.029 rows=1 loops=6276)"
"                                                                  ->  Hash Join  (cost=1.23..2.73 rows=3 width=4) (actual time=0.018..0.018 rows=1 loops=6276)"
"                                                                        Hash Cond: (le.id_exc = e.id_exc)"
"                                                                        ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.46 rows=3 width=4) (actual time=0.009..0.009 rows=1 loops=6276)"
"                                                                              Filter: (id_lock = $4)"
"                                                                        ->  Hash  (cost=1.10..1.10 rows=10 width=8) (actual time=0.024..0.024 rows=10 loops=1)"
"                                                                              ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (actual time=0.004..0.013 rows=10 loops=1)"
"                                                                  ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (actual time=0.007..0.007 rows=1 loops=6276)"
"                                                                        Index Cond: (a.id_res = e.id_res)"
"                                                                        Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                                            ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.008..0.008 rows=1 loops=6276)"
"                                                                  Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                  Filter: acl.acl_grant"
"                                              ->  Seq Scan on "BS_LOCK" l  (cost=0.00..2.20 rows=20 width=8) (actual time=0.003..0.009 rows=15 loops=6276)"
"                                        ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..4.57 rows=1 width=8) (actual time=0.006..0.006 rows=1 loops=6276)"
"                                              Index Cond: (a.id_res = l.id_res)"
"                                              Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                  ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.008..0.008 rows=1 loops=6276)"
"                                        Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                        Filter: acl.acl_grant"
"        SubPlan"
"          ->  Result  (cost=117.49..117.50 rows=1 width=0) (actual time=0.115..0.115 rows=1 loops=6277)"
"                One-Time Filter: $3"
"                InitPlan"
"                  ->  Index Scan using idx_objects_signum on "BS_OBJECTS" o  (cost=0.00..4347.07 rows=37 width=4) (actual time=0.112..0.112 rows=1 loops=6277)"
"                        Index Cond: (id_parent = $2)"
"                        Filter: ((sec_level <= 4) AND (subplan))"
"                        SubPlan"
"                          ->  Nested Loop  (cost=0.00..54.10 rows=1 width=0) (actual time=0.098..0.098 rows=1 loops=6276)"
"                                ->  Nested Loop  (cost=0.00..46.47 rows=1 width=4) (actual time=0.086..0.086 rows=1 loops=6276)"
"                                      ->  Nested Loop  (cost=0.00..41.88 rows=1 width=4) (actual time=0.077..0.077 rows=1 loops=6276)"
"                                            Join Filter: (lo.id_lock = l.id_lock)"
"                                            ->  Index Scan using fki_ref_objects on "BS_LOCKOBJ" lo  (cost=0.00..39.43 rows=1 width=4) (actual time=0.049..0.049 rows=1 loops=6276)"
"                                                  Index Cond: (id_obj = $1)"
"                                                  Filter: (subplan)"
"                                                  SubPlan"
"                                                    ->  Nested Loop  (cost=1.23..31.13 rows=1 width=0) (actual time=0.040..0.040 rows=1 loops=6276)"
"                                                          ->  Nested Loop  (cost=1.23..23.50 rows=1 width=4) (actual time=0.028..0.028 rows=1 loops=6276)"
"                                                                ->  Hash Join  (cost=1.23..2.73 rows=3 width=4) (actual time=0.017..0.017 rows=1 loops=6276)"
"                                                                      Hash Cond: (le.id_exc = e.id_exc)"
"                                                                      ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.46 rows=3 width=4) (actual time=0.009..0.009 rows=1 loops=6276)"
"                                                                            Filter: (id_lock = $0)"
"                                                                      ->  Hash  (cost=1.10..1.10 rows=10 width=8) (actual time=0.025..0.025 rows=10 loops=1)"
"                                                                            ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (actual time=0.006..0.015 rows=10 loops=1)"
"                                                                ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (actual time=0.006..0.006 rows=1 loops=6276)"
"                                                                      Index Cond: (a.id_res = e.id_res)"
"                                                                      Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                                          ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.008..0.008 rows=1 loops=6276)"
"                                                                Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                Filter: acl.acl_grant"
"                                            ->  Seq Scan on "BS_LOCK" l  (cost=0.00..2.20 rows=20 width=8) (actual time=0.003..0.009 rows=15 loops=6276)"
"                                      ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..4.57 rows=1 width=8) (actual time=0.006..0.006 rows=1 loops=6276)"
"                                            Index Cond: (a.id_res = l.id_res)"
"                                            Filter: ((a.act_name)::text = 'SELECT'::text)"
"                                ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.008..0.008 rows=1 loops=6276)"
"                                      Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                      Filter: acl.acl_grant"
"Total runtime: 1522.387 ms"
