Project

General

Profile

Defect #37268 » explain_without_visible_condition.csv

Marius BĂLTEANU, 2022-06-27 20:52

 
"QUERY PLAN"
"[
{
""Plan"": {
""Node Type"": ""Sort"",
""Parallel Aware"": false,
""Async Capable"": false,
""Actual Rows"": 0,
""Actual Loops"": 1,
""Sort Key"": [""issues.id""],
""Sort Method"": ""quicksort"",
""Sort Space Used"": 25,
""Sort Space Type"": ""Memory"",
""Plans"": [
{
""Node Type"": ""Seq Scan"",
""Parent Relationship"": ""InitPlan"",
""Subplan Name"": ""InitPlan 1 (returns $0)"",
""Parallel Aware"": false,
""Async Capable"": false,
""Relation Name"": ""custom_fields"",
""Alias"": ""ifa"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Filter"": ""(is_for_all AND (id = 13))"",
""Rows Removed by Filter"": 0
},
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Semi"",
""Actual Rows"": 0,
""Actual Loops"": 1,
""Inner Unique"": false,
""Join Filter"": ""(projects.id = em.project_id)"",
""Rows Removed by Join Filter"": 0,
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Actual Rows"": 0,
""Actual Loops"": 1,
""Inner Unique"": true,
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Actual Rows"": 0,
""Actual Loops"": 1,
""Inner Unique"": true,
""Plans"": [
{
""Node Type"": ""Merge Join"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Actual Rows"": 0,
""Actual Loops"": 1,
""Inner Unique"": true,
""Merge Cond"": ""(issues.status_id = issue_statuses_1.id)"",
""Plans"": [
{
""Node Type"": ""Sort"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Actual Rows"": 0,
""Actual Loops"": 1,
""Sort Key"": [""issues.status_id""],
""Sort Method"": ""quicksort"",
""Sort Space Used"": 25,
""Sort Space Type"": ""Memory"",
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Actual Rows"": 0,
""Actual Loops"": 1,
""Inner Unique"": true,
""Join Filter"": ""(issues.id = custom_values.customized_id)"",
""Rows Removed by Join Filter"": 0,
""Plans"": [
{
""Node Type"": ""Aggregate"",
""Strategy"": ""Hashed"",
""Partial Mode"": ""Simple"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Actual Rows"": 0,
""Actual Loops"": 1,
""Group Key"": [""issues_1.id""],
""HashAgg Batches"": 1,
""Peak Memory Usage"": 24,
""Disk Usage"": 0,
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Actual Rows"": 0,
""Actual Loops"": 1,
""Inner Unique"": true,
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Actual Rows"": 0,
""Actual Loops"": 1,
""Inner Unique"": true,
""Plans"": [
{
""Node Type"": ""Bitmap Heap Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Relation Name"": ""custom_values"",
""Alias"": ""custom_values"",
""Actual Rows"": 0,
""Actual Loops"": 1,
""Recheck Cond"": ""(custom_field_id = 13)"",
""Rows Removed by Index Recheck"": 0,
""Filter"": ""((value ~~* '%text%'::text) AND ((customized_type)::text = 'Issue'::text))"",
""Rows Removed by Filter"": 5001,
""Exact Heap Blocks"": 1764,
""Lossy Heap Blocks"": 0,
""Plans"": [
{
""Node Type"": ""Bitmap Index Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Index Name"": ""index_custom_values_on_custom_field_id"",
""Actual Rows"": 5001,
""Actual Loops"": 1,
""Index Cond"": ""(custom_field_id = 13)""
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""issues_pkey"",
""Relation Name"": ""issues"",
""Alias"": ""issues_1"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Index Cond"": ""(id = custom_values.customized_id)"",
""Rows Removed by Index Recheck"": 0,
""Filter"": ""($0 OR (hashed SubPlan 2))"",
""Rows Removed by Filter"": 0,
""Plans"": [
{
""Node Type"": ""Bitmap Heap Scan"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 2"",
""Parallel Aware"": false,
""Async Capable"": false,
""Relation Name"": ""custom_fields_projects"",
""Alias"": ""custom_fields_projects"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Recheck Cond"": ""(custom_field_id = 13)"",
""Rows Removed by Index Recheck"": 0,
""Exact Heap Blocks"": 0,
""Lossy Heap Blocks"": 0,
""Plans"": [
{
""Node Type"": ""Bitmap Index Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Index Name"": ""index_custom_fields_projects_on_custom_field_id_and_project_id"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Index Cond"": ""(custom_field_id = 13)""
}
]
}
]
}
]
},
{
""Node Type"": ""Index Only Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""index_custom_fields_trackers_on_custom_field_id_and_tracker_id"",
""Relation Name"": ""custom_fields_trackers"",
""Alias"": ""custom_fields_trackers"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Index Cond"": ""((custom_field_id = 13) AND (tracker_id = issues_1.tracker_id))"",
""Rows Removed by Index Recheck"": 0,
""Heap Fetches"": 0
}
]
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""issues_pkey"",
""Relation Name"": ""issues"",
""Alias"": ""issues"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Index Cond"": ""(id = issues_1.id)"",
""Rows Removed by Index Recheck"": 0
}
]
}
]
},
{
""Node Type"": ""Sort"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Actual Rows"": 0,
""Actual Loops"": 0,
""Sort Key"": [""issue_statuses_1.id""],
""Plans"": [
{
""Node Type"": ""Seq Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Relation Name"": ""issue_statuses"",
""Alias"": ""issue_statuses_1"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Filter"": ""(NOT is_closed)"",
""Rows Removed by Filter"": 0
}
]
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""projects_pkey"",
""Relation Name"": ""projects"",
""Alias"": ""projects"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Index Cond"": ""(id = issues.project_id)"",
""Rows Removed by Index Recheck"": 0,
""Filter"": ""((status <> 9) AND (status <> 10))"",
""Rows Removed by Filter"": 0
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""issue_statuses_pkey"",
""Relation Name"": ""issue_statuses"",
""Alias"": ""issue_statuses"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Index Cond"": ""(id = issues.status_id)"",
""Rows Removed by Index Recheck"": 0
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""enabled_modules_project_id"",
""Relation Name"": ""enabled_modules"",
""Alias"": ""em"",
""Actual Rows"": 0,
""Actual Loops"": 0,
""Index Cond"": ""(project_id = issues.project_id)"",
""Rows Removed by Index Recheck"": 0,
""Filter"": ""((name)::text = 'issue_tracking'::text)"",
""Rows Removed by Filter"": 0
}
]
}
]
},
""Triggers"": [
]
}
]"
(8-8/10)