"Limit  (cost=601203.12..601203.13 rows=1 width=225) (actual time=689214.771..689214.823 rows=44 loops=1)"
"  ->  Sort  (cost=601203.12..601203.13 rows=1 width=225) (actual time=689214.768..689214.786 rows=44 loops=1)"
"        Sort Key: o.title, o.rec_class"
"        Sort Method:  quicksort  Memory: 23kB"
"        ->  HashAggregate  (cost=597399.44..601203.11 rows=1 width=225) (actual time=689214.368..689214.422 rows=44 loops=1)"
"              ->  Nested Loop Left Join  (cost=197143.20..597398.39 rows=30 width=225) (actual time=156.163..2141.120 rows=6277 loops=1)"
"                    Join Filter: (o.id_obj = o.id_parent)"
"                    ->  Nested Loop Left Join  (cost=197.72..399317.31 rows=1 width=221) (actual time=79.082..343.174 rows=44 loops=1)"
"                          Join Filter: (o.id_obj = o.id_parent)"
"                          ->  Nested Loop Semi Join  (cost=197.72..399269.82 rows=1 width=221) (actual time=78.923..335.232 rows=44 loops=1)"
"                                Join Filter: (o.id_obj = lo.id_obj)"
"                                ->  Nested Loop  (cost=197.72..202393.10 rows=1 width=237) (actual time=72.008..87.818 rows=44 loops=1)"
"                                      ->  Nested Loop  (cost=197.72..202227.99 rows=13 width=229) (actual time=71.062..85.846 rows=44 loops=1)"
"                                            ->  Merge Semi Join  (cost=197.72..202128.30 rows=13 width=225) (actual time=71.034..84.736 rows=44 loops=1)"
"                                                  Merge Cond: (o.id_obj = lo.id_obj)"
"                                                  ->  Index Scan using "BS_BES_pkey" on "BS_OBJECTS" o  (cost=0.00..2889.31 rows=13 width=221) (actual time=18.061..30.156 rows=44 loops=1)"
"                                                        Filter: ((sec_level <= 4) AND (id_parent = 2059187))"
"                                                  ->  Materialize  (cost=197.72..199223.78 rows=6019 width=4) (actual time=3.078..52.650 rows=2667 loops=1)"
"                                                        ->  Nested Loop  (cost=197.72..199163.59 rows=6019 width=4) (actual time=3.072..50.129 rows=2667 loops=1)"
"                                                              Join Filter: (l.id_lock = lo.id_lock)"
"                                                              ->  Index Scan using fki_ref_objects on "BS_LOCKOBJ" lo  (cost=0.00..196257.32 rows=6019 width=8) (actual time=2.031..7.288 rows=2667 loops=1)"
"                                                                    Filter: (alternatives: SubPlan 5 or hashed SubPlan 6)"
"                                                                    SubPlan 5"
"                                                                      ->  Nested Loop  (cost=0.00..48.79 rows=3 width=0) (never executed)"
"                                                                            ->  Nested Loop  (cost=0.00..25.90 rows=3 width=4) (never executed)"
"                                                                                  ->  Nested Loop  (cost=0.00..5.13 rows=3 width=4) (never executed)"
"                                                                                        Join Filter: (le.id_exc = e.id_exc)"
"                                                                                        ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.45 rows=3 width=4) (never executed)"
"                                                                                              Filter: (id_lock = $4)"
"                                                                                        ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (never executed)"
"                                                                                  ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (never executed)"
"                                                                                        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) (never executed)"
"                                                                                  Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                                  Filter: acl.acl_grant"
"                                                                    SubPlan 6"
"                                                                      ->  Hash Join  (cost=3.04..122.36 rows=36 width=4) (actual time=1.351..1.752 rows=27 loops=1)"
"                                                                            Hash Cond: (e.id_exc = le.id_exc)"
"                                                                            ->  Nested Loop  (cost=1.23..120.07 rows=10 width=4) (actual time=1.226..1.596 rows=6 loops=1)"
"                                                                                  ->  Hash Join  (cost=1.23..43.77 rows=10 width=8) (actual time=1.031..1.159 rows=10 loops=1)"
"                                                                                        Hash Cond: (a.id_res = e.id_res)"
"                                                                                        ->  Seq Scan on "RS_ACTION" a  (cost=0.00..42.17 rows=72 width=8) (actual time=0.062..0.982 rows=72 loops=1)"
"                                                                                              Filter: ((act_name)::text = 'SELECT'::text)"
"                                                                                        ->  Hash  (cost=1.10..1.10 rows=10 width=8) (actual time=0.074..0.074 rows=10 loops=1)"
"                                                                                              ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (actual time=0.052..0.062 rows=10 loops=1)"
"                                                                                  ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.039..0.040 rows=1 loops=10)"
"                                                                                        Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                                        Filter: acl.acl_grant"
"                                                                            ->  Hash  (cost=1.36..1.36 rows=36 width=8) (actual time=0.101..0.101 rows=36 loops=1)"
"                                                                                  ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.36 rows=36 width=8) (actual time=0.051..0.074 rows=36 loops=1)"
"                                                              ->  Materialize  (cost=197.72..197.92 rows=20 width=4) (actual time=0.001..0.007 rows=14 loops=2667)"
"                                                                    ->  Nested Loop  (cost=2.45..197.70 rows=20 width=4) (actual time=0.700..1.279 rows=14 loops=1)"
"                                                                          ->  Hash Join  (cost=2.45..45.10 rows=20 width=8) (actual time=0.685..0.817 rows=20 loops=1)"
"                                                                                Hash Cond: (a.id_res = l.id_res)"
"                                                                                ->  Seq Scan on "RS_ACTION" a  (cost=0.00..42.17 rows=72 width=8) (actual time=0.007..0.607 rows=72 loops=1)"
"                                                                                      Filter: ((act_name)::text = 'SELECT'::text)"
"                                                                                ->  Hash  (cost=2.20..2.20 rows=20 width=8) (actual time=0.114..0.114 rows=20 loops=1)"
"                                                                                      ->  Seq Scan on "BS_LOCK" l  (cost=0.00..2.20 rows=20 width=8) (actual time=0.054..0.097 rows=20 loops=1)"
"                                                                          ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.019..0.020 rows=1 loops=20)"
"                                                                                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..7.66 rows=1 width=4) (actual time=0.017..0.019 rows=1 loops=44)"
"                                                  Index Cond: (o.id_obj = o.id_obj)"
"                                                  Filter: (o.sec_level <= 4)"
"                                      ->  Index Scan using fki_ref_tree_object on "BS_TREE" t14051109  (cost=0.00..12.69 rows=1 width=8) (actual time=0.037..0.040 rows=1 loops=44)"
"                                            Index Cond: (t14051109.id_obj = o.id_obj)"
"                                            Filter: (t14051109.id_obj = t14051109.id_parent)"
"                                ->  Merge Join  (cost=0.00..196801.49 rows=6019 width=4) (actual time=0.090..4.600 rows=2104 loops=44)"
"                                      Merge Cond: (l.id_lock = lo.id_lock)"
"                                      ->  Nested Loop  (cost=0.00..259.73 rows=20 width=4) (actual time=0.045..0.045 rows=1 loops=44)"
"                                            ->  Nested Loop  (cost=0.00..107.13 rows=20 width=8) (actual time=0.026..0.026 rows=1 loops=44)"
"                                                  ->  Index Scan using id_lock on "BS_LOCK" l  (cost=0.00..15.46 rows=20 width=8) (actual time=0.008..0.008 rows=1 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.013..0.013 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.014..0.014 rows=1 loops=44)"
"                                                  Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                  Filter: acl.acl_grant"
"                                      ->  Index Scan using unq_lock_obj_inherited on "BS_LOCKOBJ" lo  (cost=0.00..196479.46 rows=6019 width=8) (actual time=0.039..2.502 rows=2104 loops=44)"
"                                            Filter: (alternatives: SubPlan 9 or hashed SubPlan 10)"
"                                            SubPlan 9"
"                                              ->  Nested Loop  (cost=0.00..48.79 rows=3 width=0) (never executed)"
"                                                    ->  Nested Loop  (cost=0.00..25.90 rows=3 width=4) (never executed)"
"                                                          ->  Nested Loop  (cost=0.00..5.13 rows=3 width=4) (never executed)"
"                                                                Join Filter: (le.id_exc = e.id_exc)"
"                                                                ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.45 rows=3 width=4) (never executed)"
"                                                                      Filter: (id_lock = $8)"
"                                                                ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (never executed)"
"                                                          ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (never executed)"
"                                                                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) (never executed)"
"                                                          Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                          Filter: acl.acl_grant"
"                                            SubPlan 10"
"                                              ->  Hash Join  (cost=3.04..122.36 rows=36 width=4) (actual time=0.737..0.986 rows=27 loops=1)"
"                                                    Hash Cond: (e.id_exc = le.id_exc)"
"                                                    ->  Nested Loop  (cost=1.23..120.07 rows=10 width=4) (actual time=0.664..0.884 rows=6 loops=1)"
"                                                          ->  Hash Join  (cost=1.23..43.77 rows=10 width=8) (actual time=0.649..0.753 rows=10 loops=1)"
"                                                                Hash Cond: (a.id_res = e.id_res)"
"                                                                ->  Seq Scan on "RS_ACTION" a  (cost=0.00..42.17 rows=72 width=8) (actual time=0.008..0.644 rows=72 loops=1)"
"                                                                      Filter: ((act_name)::text = 'SELECT'::text)"
"                                                                ->  Hash  (cost=1.10..1.10 rows=10 width=8) (actual time=0.026..0.026 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_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.009..0.010 rows=1 loops=10)"
"                                                                Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                Filter: acl.acl_grant"
"                                                    ->  Hash  (cost=1.36..1.36 rows=36 width=8) (actual time=0.051..0.051 rows=36 loops=1)"
"                                                          ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.36 rows=36 width=8) (actual time=0.005..0.027 rows=36 loops=1)"
"                          ->  Nested Loop Semi Join  (cost=0.00..47.48 rows=1 width=8) (actual time=0.169..0.174 rows=1 loops=44)"
"                                ->  Index Scan using "BS_BES_pkey" on "BS_OBJECTS" o  (cost=0.00..8.27 rows=1 width=8) (actual time=0.010..0.014 rows=1 loops=44)"
"                                      Index Cond: (id_obj = 2059187)"
"                                      Filter: (sec_level <= 4)"
"                                ->  Nested Loop  (cost=0.00..39.20 rows=1 width=4) (actual time=0.153..0.153 rows=1 loops=44)"
"                                      ->  Nested Loop  (cost=0.00..31.57 rows=1 width=8) (actual time=0.140..0.140 rows=1 loops=44)"
"                                            ->  Nested Loop  (cost=0.00..26.98 rows=1 width=8) (actual time=0.128..0.128 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..24.53 rows=1 width=8) (actual time=0.095..0.095 rows=1 loops=44)"
"                                                        Index Cond: (id_obj = 2059187)"
"                                                        Filter: (alternatives: SubPlan 7 or hashed SubPlan 8)"
"                                                        SubPlan 7"
"                                                          ->  Nested Loop  (cost=0.00..48.79 rows=3 width=0) (actual time=0.081..0.081 rows=1 loops=44)"
"                                                                ->  Nested Loop  (cost=0.00..25.90 rows=3 width=4) (actual time=0.063..0.063 rows=1 loops=44)"
"                                                                      ->  Nested Loop  (cost=0.00..5.13 rows=3 width=4) (actual time=0.050..0.050 rows=1 loops=44)"
"                                                                            Join Filter: (le.id_exc = e.id_exc)"
"                                                                            ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.45 rows=3 width=4) (actual time=0.011..0.011 rows=1 loops=44)"
"                                                                                  Filter: (id_lock = $6)"
"                                                                            ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (actual time=0.003..0.006 rows=6 loops=44)"
"                                                                      ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (actual time=0.008..0.008 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.011..0.011 rows=1 loops=44)"
"                                                                      Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                      Filter: acl.acl_grant"
"                                                        SubPlan 8"
"                                                          ->  Hash Join  (cost=3.04..122.36 rows=36 width=4) (never executed)"
"                                                                Hash Cond: (e.id_exc = le.id_exc)"
"                                                                ->  Nested Loop  (cost=1.23..120.07 rows=10 width=4) (never executed)"
"                                                                      ->  Hash Join  (cost=1.23..43.77 rows=10 width=8) (never executed)"
"                                                                            Hash Cond: (a.id_res = e.id_res)"
"                                                                            ->  Seq Scan on "RS_ACTION" a  (cost=0.00..42.17 rows=72 width=8) (never executed)"
"                                                                                  Filter: ((act_name)::text = 'SELECT'::text)"
"                                                                            ->  Hash  (cost=1.10..1.10 rows=10 width=8) (never executed)"
"                                                                                  ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (never executed)"
"                                                                      ->  Index Scan using fki_ref_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (never executed)"
"                                                                            Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                            Filter: acl.acl_grant"
"                                                                ->  Hash  (cost=1.36..1.36 rows=36 width=8) (never executed)"
"                                                                      ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.36 rows=36 width=8) (never executed)"
"                                                  ->  Seq Scan on "BS_LOCK" l  (cost=0.00..2.20 rows=20 width=8) (actual time=0.004..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.007..0.007 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"
"                    ->  Hash Join  (cost=196945.48..198005.54 rows=6019 width=8) (actual time=1.334..34.771 rows=11461 loops=44)"
"                          Hash Cond: (o.id_obj = lo.id_obj)"
"                          ->  Seq Scan on "BS_OBJECTS" o  (cost=0.00..885.26 rows=11461 width=8) (actual time=0.007..14.946 rows=11461 loops=44)"
"                                Filter: (sec_level <= 4)"
"                          ->  Hash  (cost=196873.84..196873.84 rows=5731 width=4) (actual time=58.182..58.182 rows=11461 loops=1)"
"                                ->  HashAggregate  (cost=196816.53..196873.84 rows=5731 width=4) (actual time=44.301..51.170 rows=11461 loops=1)"
"                                      ->  Merge Join  (cost=0.00..196801.49 rows=6019 width=4) (actual time=1.006..32.801 rows=12008 loops=1)"
"                                            Merge Cond: (l.id_lock = lo.id_lock)"
"                                            ->  Nested Loop  (cost=0.00..259.73 rows=20 width=4) (actual time=0.030..0.616 rows=14 loops=1)"
"                                                  ->  Nested Loop  (cost=0.00..107.13 rows=20 width=8) (actual time=0.017..0.356 rows=20 loops=1)"
"                                                        ->  Index Scan using id_lock on "BS_LOCK" l  (cost=0.00..15.46 rows=20 width=8) (actual time=0.005..0.024 rows=20 loops=1)"
"                                                        ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..4.57 rows=1 width=8) (actual time=0.009..0.012 rows=1 loops=20)"
"                                                              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.010 rows=1 loops=20)"
"                                                        Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                        Filter: acl.acl_grant"
"                                            ->  Index Scan using unq_lock_obj_inherited on "BS_LOCKOBJ" lo  (cost=0.00..196479.46 rows=6019 width=8) (actual time=0.971..19.955 rows=12008 loops=1)"
"                                                  Filter: (alternatives: SubPlan 11 or hashed SubPlan 12)"
"                                                  SubPlan 11"
"                                                    ->  Nested Loop  (cost=0.00..48.79 rows=3 width=0) (never executed)"
"                                                          ->  Nested Loop  (cost=0.00..25.90 rows=3 width=4) (never executed)"
"                                                                ->  Nested Loop  (cost=0.00..5.13 rows=3 width=4) (never executed)"
"                                                                      Join Filter: (le.id_exc = e.id_exc)"
"                                                                      ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.45 rows=3 width=4) (never executed)"
"                                                                            Filter: (id_lock = $10)"
"                                                                      ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (never executed)"
"                                                                ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (never executed)"
"                                                                      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) (never executed)"
"                                                                Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                Filter: acl.acl_grant"
"                                                  SubPlan 12"
"                                                    ->  Hash Join  (cost=3.04..122.36 rows=36 width=4) (actual time=0.663..0.907 rows=27 loops=1)"
"                                                          Hash Cond: (e.id_exc = le.id_exc)"
"                                                          ->  Nested Loop  (cost=1.23..120.07 rows=10 width=4) (actual time=0.596..0.811 rows=6 loops=1)"
"                                                                ->  Hash Join  (cost=1.23..43.77 rows=10 width=8) (actual time=0.583..0.685 rows=10 loops=1)"
"                                                                      Hash Cond: (a.id_res = e.id_res)"
"                                                                      ->  Seq Scan on "RS_ACTION" a  (cost=0.00..42.17 rows=72 width=8) (actual time=0.007..0.595 rows=72 loops=1)"
"                                                                            Filter: ((act_name)::text = 'SELECT'::text)"
"                                                                      ->  Hash  (cost=1.10..1.10 rows=10 width=8) (actual time=0.021..0.021 rows=10 loops=1)"
"                                                                            ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (actual time=0.004..0.012 rows=10 loops=1)"
"                                                                ->  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=10)"
"                                                                      Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                      Filter: acl.acl_grant"
"                                                          ->  Hash  (cost=1.36..1.36 rows=36 width=8) (actual time=0.049..0.049 rows=36 loops=1)"
"                                                                ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.36 rows=36 width=8) (actual time=0.004..0.025 rows=36 loops=1)"
"              SubPlan 4"
"                ->  Result  (cost=3803.63..3803.64 rows=1 width=0) (actual time=109.443..109.443 rows=1 loops=6277)"
"                      One-Time Filter: $3"
"                      InitPlan 3 (returns $3)"
"                        ->  Merge Semi Join  (cost=197.72..202128.84 rows=56 width=0) (actual time=109.434..109.434 rows=1 loops=6277)"
"                              Merge Cond: (o.id_obj = lo.id_obj)"
"                              ->  Index Scan using "BS_BES_pkey" on "BS_OBJECTS" o  (cost=0.00..2889.31 rows=56 width=4) (actual time=6.130..6.130 rows=1 loops=6277)"
"                                    Filter: ((sec_level <= 4) AND (id_parent = $2))"
"                              ->  Materialize  (cost=197.72..199223.78 rows=6019 width=4) (actual time=0.042..100.024 rows=5658 loops=6276)"
"                                    ->  Nested Loop  (cost=197.72..199163.59 rows=6019 width=4) (actual time=0.037..94.818 rows=5658 loops=6276)"
"                                          Join Filter: (l.id_lock = lo.id_lock)"
"                                          ->  Index Scan using fki_ref_objects on "BS_LOCKOBJ" lo  (cost=0.00..196257.32 rows=6019 width=8) (actual time=0.019..7.775 rows=5658 loops=6276)"
"                                                Filter: (alternatives: SubPlan 1 or hashed SubPlan 2)"
"                                                SubPlan 1"
"                                                  ->  Nested Loop  (cost=0.00..48.79 rows=3 width=0) (never executed)"
"                                                        ->  Nested Loop  (cost=0.00..25.90 rows=3 width=4) (never executed)"
"                                                              ->  Nested Loop  (cost=0.00..5.13 rows=3 width=4) (never executed)"
"                                                                    Join Filter: (le.id_exc = e.id_exc)"
"                                                                    ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.45 rows=3 width=4) (never executed)"
"                                                                          Filter: (id_lock = $0)"
"                                                                    ->  Seq Scan on "BS_EXCEPTION" e  (cost=0.00..1.10 rows=10 width=8) (never executed)"
"                                                              ->  Index Scan using fki_ref_action_resource on "RS_ACTION" a  (cost=0.00..6.91 rows=1 width=8) (never executed)"
"                                                                    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) (never executed)"
"                                                              Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                              Filter: acl.acl_grant"
"                                                SubPlan 2"
"                                                  ->  Hash Join  (cost=3.04..122.36 rows=36 width=4) (actual time=0.723..0.973 rows=27 loops=1)"
"                                                        Hash Cond: (e.id_exc = le.id_exc)"
"                                                        ->  Nested Loop  (cost=1.23..120.07 rows=10 width=4) (actual time=0.657..0.878 rows=6 loops=1)"
"                                                              ->  Hash Join  (cost=1.23..43.77 rows=10 width=8) (actual time=0.635..0.740 rows=10 loops=1)"
"                                                                    Hash Cond: (a.id_res = e.id_res)"
"                                                                    ->  Seq Scan on "RS_ACTION" a  (cost=0.00..42.17 rows=72 width=8) (actual time=0.012..0.635 rows=72 loops=1)"
"                                                                          Filter: ((act_name)::text = 'SELECT'::text)"
"                                                                    ->  Hash  (cost=1.10..1.10 rows=10 width=8) (actual time=0.026..0.026 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_acl_user on "RS_ACL" acl  (cost=0.00..7.62 rows=1 width=4) (actual time=0.010..0.010 rows=1 loops=10)"
"                                                                    Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                                    Filter: acl.acl_grant"
"                                                        ->  Hash  (cost=1.36..1.36 rows=36 width=8) (actual time=0.050..0.050 rows=36 loops=1)"
"                                                              ->  Seq Scan on "BS_LOCKEXCEPT" le  (cost=0.00..1.36 rows=36 width=8) (actual time=0.005..0.027 rows=36 loops=1)"
"                                          ->  Materialize  (cost=197.72..197.92 rows=20 width=4) (actual time=0.000..0.006 rows=14 loops=35511609)"
"                                                ->  Nested Loop  (cost=2.45..197.70 rows=20 width=4) (actual time=0.637..1.007 rows=14 loops=1)"
"                                                      ->  Hash Join  (cost=2.45..45.10 rows=20 width=8) (actual time=0.623..0.756 rows=20 loops=1)"
"                                                            Hash Cond: (a.id_res = l.id_res)"
"                                                            ->  Seq Scan on "RS_ACTION" a  (cost=0.00..42.17 rows=72 width=8) (actual time=0.006..0.624 rows=72 loops=1)"
"                                                                  Filter: ((act_name)::text = 'SELECT'::text)"
"                                                            ->  Hash  (cost=2.20..2.20 rows=20 width=8) (actual time=0.038..0.038 rows=20 loops=1)"
"                                                                  ->  Seq Scan on "BS_LOCK" l  (cost=0.00..2.20 rows=20 width=8) (actual time=0.006..0.023 rows=20 loops=1)"
"                                                      ->  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=20)"
"                                                            Index Cond: ((acl.id_usr = 2) AND (acl.id_act = a.id_act))"
"                                                            Filter: acl.acl_grant"
"Total runtime: 689219.093 ms"
