firtst release
Revision | 2889ddb02a55230431a29bfce52140c41322a75a (tree) |
---|---|
Time | 2013-09-13 15:46:41 |
Author | Takashi Suzuki <suzuki.takashi@metr...> |
Commiter | Takashi Suzuki |
PL/pgSQL文に関する仕様変更にそってリグレッションテストの内容を変更した。
@@ -4016,11 +4016,10 @@ BEGIN | ||
4016 | 4016 | RETURN 0; |
4017 | 4017 | END IF; |
4018 | 4018 | |
4019 | - EXECUTE '/*+ IndexScan(t_1) */' | |
4020 | - ' SELECT nested_planner($1) FROM s1.t1 t_1' | |
4021 | - ' JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1)' | |
4022 | - ' ORDER BY t_1.c1 LIMIT 1' | |
4023 | - INTO new_cnt USING cnt - 1; | |
4019 | + SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) INTO new_cnt | |
4020 | + FROM s1.t1 t_1 | |
4021 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4022 | + ORDER BY t_1.c1 LIMIT 1; | |
4024 | 4023 | |
4025 | 4024 | RETURN new_cnt; |
4026 | 4025 | END; |
@@ -4082,9 +4081,22 @@ error hint: | ||
4082 | 4081 | --No.13-3-2 |
4083 | 4082 | EXPLAIN (COSTS false) SELECT nested_planner(2) FROM s1.t1 t_1 ORDER BY t_1.c1; |
4084 | 4083 | NOTICE: nested_planner(2) |
4084 | +LOG: pg_hint_plan: | |
4085 | +used hint: | |
4086 | +IndexScan(t_1) | |
4087 | +not used hint: | |
4088 | +duplication hint: | |
4089 | +error hint: | |
4090 | + | |
4091 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4092 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4093 | + ORDER BY t_1.c1 LIMIT 1" | |
4094 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4085 | 4095 | NOTICE: nested_planner(1) |
4086 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4087 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4096 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4097 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4098 | + ORDER BY t_1.c1 LIMIT 1" | |
4099 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4088 | 4100 | QUERY PLAN |
4089 | 4101 | ---------------------------------- |
4090 | 4102 | Index Scan using t1_i1 on t1 t_1 |
@@ -4094,17 +4106,10 @@ PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | ||
4094 | 4106 | EXPLAIN (COSTS false) SELECT nested_planner(2) FROM s1.t1 t_1 ORDER BY t_1.c1; |
4095 | 4107 | NOTICE: nested_planner(2) |
4096 | 4108 | NOTICE: nested_planner(1) |
4097 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4098 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4099 | -LOG: pg_hint_plan: | |
4100 | -used hint: | |
4101 | -SeqScan(t_2) | |
4102 | -not used hint: | |
4103 | -duplication hint: | |
4104 | -error hint: | |
4105 | - | |
4106 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4107 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4109 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4110 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4111 | + ORDER BY t_1.c1 LIMIT 1" | |
4112 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4108 | 4113 | LOG: pg_hint_plan: |
4109 | 4114 | used hint: |
4110 | 4115 | not used hint: |
@@ -4121,29 +4126,49 @@ error hint: | ||
4121 | 4126 | EXPLAIN (COSTS false) SELECT nested_planner(5) FROM s1.t1 t_1 ORDER BY t_1.c1; |
4122 | 4127 | NOTICE: nested_planner(5) |
4123 | 4128 | NOTICE: nested_planner(4) |
4124 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4125 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4129 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4130 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4131 | + ORDER BY t_1.c1 LIMIT 1" | |
4132 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4126 | 4133 | NOTICE: nested_planner(3) |
4127 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4128 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4129 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4130 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4134 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4135 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4136 | + ORDER BY t_1.c1 LIMIT 1" | |
4137 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4138 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4139 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4140 | + ORDER BY t_1.c1 LIMIT 1" | |
4141 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4131 | 4142 | NOTICE: nested_planner(2) |
4132 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4133 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4134 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4135 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4136 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4137 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4143 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4144 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4145 | + ORDER BY t_1.c1 LIMIT 1" | |
4146 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4147 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4148 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4149 | + ORDER BY t_1.c1 LIMIT 1" | |
4150 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4151 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4152 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4153 | + ORDER BY t_1.c1 LIMIT 1" | |
4154 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4138 | 4155 | NOTICE: nested_planner(1) |
4139 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4140 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4141 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4142 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4143 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4144 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4145 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4146 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4156 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4157 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4158 | + ORDER BY t_1.c1 LIMIT 1" | |
4159 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4160 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4161 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4162 | + ORDER BY t_1.c1 LIMIT 1" | |
4163 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4164 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4165 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4166 | + ORDER BY t_1.c1 LIMIT 1" | |
4167 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4168 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4169 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4170 | + ORDER BY t_1.c1 LIMIT 1" | |
4171 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4147 | 4172 | QUERY PLAN |
4148 | 4173 | ---------------------------------- |
4149 | 4174 | Index Scan using t1_i1 on t1 t_1 |
@@ -4153,77 +4178,49 @@ PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | ||
4153 | 4178 | EXPLAIN (COSTS false) SELECT nested_planner(5) FROM s1.t1 t_1 ORDER BY t_1.c1; |
4154 | 4179 | NOTICE: nested_planner(5) |
4155 | 4180 | NOTICE: nested_planner(4) |
4156 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4157 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4181 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4182 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4183 | + ORDER BY t_1.c1 LIMIT 1" | |
4184 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4158 | 4185 | NOTICE: nested_planner(3) |
4159 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4160 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4161 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4162 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4186 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4187 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4188 | + ORDER BY t_1.c1 LIMIT 1" | |
4189 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4190 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4191 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4192 | + ORDER BY t_1.c1 LIMIT 1" | |
4193 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4163 | 4194 | NOTICE: nested_planner(2) |
4164 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4165 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4166 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4167 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4168 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4169 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4195 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4196 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4197 | + ORDER BY t_1.c1 LIMIT 1" | |
4198 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4199 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4200 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4201 | + ORDER BY t_1.c1 LIMIT 1" | |
4202 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4203 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4204 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4205 | + ORDER BY t_1.c1 LIMIT 1" | |
4206 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4170 | 4207 | NOTICE: nested_planner(1) |
4171 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4172 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4173 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4174 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4175 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4176 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4177 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4178 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4179 | -LOG: pg_hint_plan: | |
4180 | -used hint: | |
4181 | -SeqScan(t_2) | |
4182 | -not used hint: | |
4183 | -duplication hint: | |
4184 | -error hint: | |
4185 | - | |
4186 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4187 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4188 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4189 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4190 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4191 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4192 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4193 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4194 | -LOG: pg_hint_plan: | |
4195 | -used hint: | |
4196 | -SeqScan(t_2) | |
4197 | -not used hint: | |
4198 | -duplication hint: | |
4199 | -error hint: | |
4200 | - | |
4201 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4202 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4203 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4204 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4205 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4206 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4207 | -LOG: pg_hint_plan: | |
4208 | -used hint: | |
4209 | -SeqScan(t_2) | |
4210 | -not used hint: | |
4211 | -duplication hint: | |
4212 | -error hint: | |
4213 | - | |
4214 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4215 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4216 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4217 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4218 | -LOG: pg_hint_plan: | |
4219 | -used hint: | |
4220 | -SeqScan(t_2) | |
4221 | -not used hint: | |
4222 | -duplication hint: | |
4223 | -error hint: | |
4224 | - | |
4225 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4226 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4208 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4209 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4210 | + ORDER BY t_1.c1 LIMIT 1" | |
4211 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4212 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4213 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4214 | + ORDER BY t_1.c1 LIMIT 1" | |
4215 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4216 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4217 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4218 | + ORDER BY t_1.c1 LIMIT 1" | |
4219 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4220 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4221 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4222 | + ORDER BY t_1.c1 LIMIT 1" | |
4223 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4227 | 4224 | LOG: pg_hint_plan: |
4228 | 4225 | used hint: |
4229 | 4226 | not used hint: |
@@ -4247,17 +4244,10 @@ EXPLAIN (COSTS false) | ||
4247 | 4244 | ORDER BY t_1.c1; |
4248 | 4245 | NOTICE: nested_planner(2) |
4249 | 4246 | NOTICE: nested_planner(1) |
4250 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4251 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4252 | -LOG: pg_hint_plan: | |
4253 | -used hint: | |
4254 | -HashJoin(t_1 t_2) | |
4255 | -not used hint: | |
4256 | -duplication hint: | |
4257 | -error hint: | |
4258 | - | |
4259 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4260 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4247 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4248 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4249 | + ORDER BY t_1.c1 LIMIT 1" | |
4250 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4261 | 4251 | LOG: pg_hint_plan: |
4262 | 4252 | used hint: |
4263 | 4253 | HashJoin(t_1 t_2) |
@@ -4284,17 +4274,10 @@ EXPLAIN (COSTS false) | ||
4284 | 4274 | ORDER BY st_1.c1; |
4285 | 4275 | NOTICE: nested_planner(2) |
4286 | 4276 | NOTICE: nested_planner(1) |
4287 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4288 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4289 | -LOG: pg_hint_plan: | |
4290 | -used hint: | |
4291 | -not used hint: | |
4292 | -HashJoin(st_1 st_2) | |
4293 | -duplication hint: | |
4294 | -error hint: | |
4295 | - | |
4296 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4297 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4277 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4278 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4279 | + ORDER BY t_1.c1 LIMIT 1" | |
4280 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4298 | 4281 | LOG: pg_hint_plan: |
4299 | 4282 | used hint: |
4300 | 4283 | HashJoin(st_1 st_2) |
@@ -4321,17 +4304,10 @@ EXPLAIN (COSTS false) | ||
4321 | 4304 | ORDER BY st_1.c1; |
4322 | 4305 | NOTICE: nested_planner(2) |
4323 | 4306 | NOTICE: nested_planner(1) |
4324 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4325 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4326 | -LOG: pg_hint_plan: | |
4327 | -used hint: | |
4328 | -HashJoin(t_1 t_2) | |
4329 | -not used hint: | |
4330 | -duplication hint: | |
4331 | -error hint: | |
4332 | - | |
4333 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4334 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4307 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4308 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4309 | + ORDER BY t_1.c1 LIMIT 1" | |
4310 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4335 | 4311 | LOG: pg_hint_plan: |
4336 | 4312 | used hint: |
4337 | 4313 | not used hint: |
@@ -4357,17 +4333,10 @@ EXPLAIN (COSTS false) | ||
4357 | 4333 | ORDER BY t_1.c1; |
4358 | 4334 | NOTICE: nested_planner(2) |
4359 | 4335 | NOTICE: nested_planner(1) |
4360 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4361 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4362 | -LOG: pg_hint_plan: | |
4363 | -used hint: | |
4364 | -not used hint: | |
4365 | -HashJoin(st_1 st_2) | |
4366 | -duplication hint: | |
4367 | -error hint: | |
4368 | - | |
4369 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4370 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4336 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4337 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4338 | + ORDER BY t_1.c1 LIMIT 1" | |
4339 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4371 | 4340 | LOG: pg_hint_plan: |
4372 | 4341 | used hint: |
4373 | 4342 | not used hint: |
@@ -4392,21 +4361,10 @@ EXPLAIN (COSTS false) | ||
4392 | 4361 | ORDER BY t_1.c1; |
4393 | 4362 | NOTICE: nested_planner(2) |
4394 | 4363 | NOTICE: nested_planner(1) |
4395 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4396 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4397 | -INFO: hint syntax error at or near "HashJoin(t_1 t_1)" | |
4398 | -DETAIL: Relation name "t_1" is duplicated. | |
4399 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4400 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4401 | -LOG: pg_hint_plan: | |
4402 | -used hint: | |
4403 | -not used hint: | |
4404 | -duplication hint: | |
4405 | -error hint: | |
4406 | -HashJoin(t_1 t_1) | |
4407 | - | |
4408 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4409 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4364 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4365 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4366 | + ORDER BY t_1.c1 LIMIT 1" | |
4367 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4410 | 4368 | LOG: pg_hint_plan: |
4411 | 4369 | used hint: |
4412 | 4370 | not used hint: |
@@ -4430,10 +4388,9 @@ BEGIN | ||
4430 | 4388 | RETURN 0; |
4431 | 4389 | END IF; |
4432 | 4390 | |
4433 | - EXECUTE '/*+ IndexScan(t_1) */' | |
4434 | - ' SELECT nested_planner_one_t($1) FROM s1.t1 t_1' | |
4435 | - ' ORDER BY t_1.c1 LIMIT 1' | |
4436 | - INTO new_cnt USING cnt - 1; | |
4391 | + SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) INTO new_cnt | |
4392 | + FROM s1.t1 t_1 | |
4393 | + ORDER BY t_1.c1 LIMIT 1; | |
4437 | 4394 | |
4438 | 4395 | RETURN new_cnt; |
4439 | 4396 | END; |
@@ -4443,9 +4400,32 @@ EXPLAIN (COSTS false) | ||
4443 | 4400 | JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) |
4444 | 4401 | ORDER BY t_1.c1; |
4445 | 4402 | NOTICE: nested_planner_one_t(2) |
4403 | +LOG: pg_hint_plan: | |
4404 | +used hint: | |
4405 | +IndexScan(t_1) | |
4406 | +not used hint: | |
4407 | +duplication hint: | |
4408 | +error hint: | |
4409 | + | |
4410 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) FROM s1.t1 t_1 | |
4411 | + ORDER BY t_1.c1 LIMIT 1" | |
4412 | +PL/pgSQL function "nested_planner_one_t" line 11 at SQL statement | |
4446 | 4413 | NOTICE: nested_planner_one_t(1) |
4447 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner_one_t($1) FROM s1.t1 t_1 ORDER BY t_1.c1 LIMIT 1" | |
4448 | -PL/pgSQL function "nested_planner_one_t" line 11 at EXECUTE statement | |
4414 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) FROM s1.t1 t_1 | |
4415 | + ORDER BY t_1.c1 LIMIT 1" | |
4416 | +PL/pgSQL function "nested_planner_one_t" line 11 at SQL statement | |
4417 | +LOG: pg_hint_plan: | |
4418 | +used hint: | |
4419 | +not used hint: | |
4420 | +IndexScan(t_1) | |
4421 | +duplication hint: | |
4422 | +error hint: | |
4423 | + | |
4424 | +CONTEXT: SQL statement "SELECT 0" | |
4425 | +PL/pgSQL function "nested_planner_one_t" line 8 at RETURN | |
4426 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) FROM s1.t1 t_1 | |
4427 | + ORDER BY t_1.c1 LIMIT 1" | |
4428 | +PL/pgSQL function "nested_planner_one_t" line 11 at SQL statement | |
4449 | 4429 | QUERY PLAN |
4450 | 4430 | ---------------------------------------- |
4451 | 4431 | Merge Join |
@@ -4463,17 +4443,9 @@ EXPLAIN (COSTS false) | ||
4463 | 4443 | ORDER BY t_1.c1; |
4464 | 4444 | NOTICE: nested_planner_one_t(2) |
4465 | 4445 | NOTICE: nested_planner_one_t(1) |
4466 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner_one_t($1) FROM s1.t1 t_1 ORDER BY t_1.c1 LIMIT 1" | |
4467 | -PL/pgSQL function "nested_planner_one_t" line 11 at EXECUTE statement | |
4468 | -LOG: pg_hint_plan: | |
4469 | -used hint: | |
4470 | -not used hint: | |
4471 | -HashJoin(t_1 t_1) | |
4472 | -duplication hint: | |
4473 | -error hint: | |
4474 | - | |
4475 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner_one_t($1) FROM s1.t1 t_1 ORDER BY t_1.c1 LIMIT 1" | |
4476 | -PL/pgSQL function "nested_planner_one_t" line 11 at EXECUTE statement | |
4446 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) FROM s1.t1 t_1 | |
4447 | + ORDER BY t_1.c1 LIMIT 1" | |
4448 | +PL/pgSQL function "nested_planner_one_t" line 11 at SQL statement | |
4477 | 4449 | INFO: hint syntax error at or near "HashJoin(t_1 t_1)" |
4478 | 4450 | DETAIL: Relation name "t_1" is duplicated. |
4479 | 4451 | LOG: pg_hint_plan: |
@@ -4502,21 +4474,10 @@ EXPLAIN (COSTS false) | ||
4502 | 4474 | ORDER BY t_1.c1; |
4503 | 4475 | NOTICE: nested_planner(2) |
4504 | 4476 | NOTICE: nested_planner(1) |
4505 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4506 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4507 | -INFO: hint syntax error at or near "HashJoin(t_1 t_1)" | |
4508 | -DETAIL: Relation name "t_1" is duplicated. | |
4509 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4510 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4511 | -LOG: pg_hint_plan: | |
4512 | -used hint: | |
4513 | -not used hint: | |
4514 | -duplication hint: | |
4515 | -error hint: | |
4516 | -HashJoin(t_1 t_1) | |
4517 | - | |
4518 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4519 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4477 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4478 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4479 | + ORDER BY t_1.c1 LIMIT 1" | |
4480 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4520 | 4481 | INFO: hint syntax error at or near "HashJoin(t_1 t_1)" |
4521 | 4482 | DETAIL: Relation name "t_1" is duplicated. |
4522 | 4483 | LOG: pg_hint_plan: |
@@ -4545,23 +4506,11 @@ EXPLAIN (COSTS false) | ||
4545 | 4506 | INFO: hint syntax error at or near "MergeJoin(t_1 t_2)HashJoin(t_1 t_2)" |
4546 | 4507 | DETAIL: Conflict join method hint. |
4547 | 4508 | NOTICE: nested_planner(2) |
4548 | -INFO: hint syntax error at or near "MergeJoin(t_1 t_2)HashJoin(t_1 t_2)" | |
4549 | -DETAIL: Conflict join method hint. | |
4550 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4551 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4552 | 4509 | NOTICE: nested_planner(1) |
4553 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4554 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4555 | -LOG: pg_hint_plan: | |
4556 | -used hint: | |
4557 | -HashJoin(t_1 t_2) | |
4558 | -not used hint: | |
4559 | -duplication hint: | |
4560 | -MergeJoin(t_1 t_2) | |
4561 | -error hint: | |
4562 | - | |
4563 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4564 | -PL/pgSQL function "nested_planner" line 12 at EXECUTE statement | |
4510 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4511 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4512 | + ORDER BY t_1.c1 LIMIT 1" | |
4513 | +PL/pgSQL function "nested_planner" line 12 at SQL statement | |
4565 | 4514 | LOG: pg_hint_plan: |
4566 | 4515 | used hint: |
4567 | 4516 | HashJoin(t_1 t_2) |
@@ -4166,11 +4166,10 @@ BEGIN | ||
4166 | 4166 | RETURN 0; |
4167 | 4167 | END IF; |
4168 | 4168 | |
4169 | - EXECUTE '/*+ IndexScan(t_1) */' | |
4170 | - ' SELECT nested_planner($1) FROM s1.t1 t_1' | |
4171 | - ' JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1)' | |
4172 | - ' ORDER BY t_1.c1 LIMIT 1' | |
4173 | - INTO new_cnt USING cnt - 1; | |
4169 | + SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) INTO new_cnt | |
4170 | + FROM s1.t1 t_1 | |
4171 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4172 | + ORDER BY t_1.c1 LIMIT 1; | |
4174 | 4173 | |
4175 | 4174 | RETURN new_cnt; |
4176 | 4175 | END; |
@@ -4233,8 +4232,21 @@ error hint: | ||
4233 | 4232 | EXPLAIN (COSTS false) SELECT nested_planner(2) FROM s1.t1 t_1 ORDER BY t_1.c1; |
4234 | 4233 | NOTICE: nested_planner(2) |
4235 | 4234 | NOTICE: nested_planner(1) |
4236 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4237 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4235 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4236 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4237 | + ORDER BY t_1.c1 LIMIT 1" | |
4238 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4239 | +LOG: pg_hint_plan: | |
4240 | +used hint: | |
4241 | +IndexScan(t_1) | |
4242 | +not used hint: | |
4243 | +duplication hint: | |
4244 | +error hint: | |
4245 | + | |
4246 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4247 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4248 | + ORDER BY t_1.c1 LIMIT 1" | |
4249 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4238 | 4250 | QUERY PLAN |
4239 | 4251 | --------------------------------------- |
4240 | 4252 | Index Only Scan using t1_i1 on t1 t_1 |
@@ -4244,17 +4256,21 @@ PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | ||
4244 | 4256 | EXPLAIN (COSTS false) SELECT nested_planner(2) FROM s1.t1 t_1 ORDER BY t_1.c1; |
4245 | 4257 | NOTICE: nested_planner(2) |
4246 | 4258 | NOTICE: nested_planner(1) |
4247 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4248 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4259 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4260 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4261 | + ORDER BY t_1.c1 LIMIT 1" | |
4262 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4249 | 4263 | LOG: pg_hint_plan: |
4250 | 4264 | used hint: |
4251 | -SeqScan(t_2) | |
4265 | +IndexScan(t_1) | |
4252 | 4266 | not used hint: |
4253 | 4267 | duplication hint: |
4254 | 4268 | error hint: |
4255 | 4269 | |
4256 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4257 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4270 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4271 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4272 | + ORDER BY t_1.c1 LIMIT 1" | |
4273 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4258 | 4274 | LOG: pg_hint_plan: |
4259 | 4275 | used hint: |
4260 | 4276 | not used hint: |
@@ -4271,29 +4287,117 @@ error hint: | ||
4271 | 4287 | EXPLAIN (COSTS false) SELECT nested_planner(5) FROM s1.t1 t_1 ORDER BY t_1.c1; |
4272 | 4288 | NOTICE: nested_planner(5) |
4273 | 4289 | NOTICE: nested_planner(4) |
4274 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4275 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4290 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4291 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4292 | + ORDER BY t_1.c1 LIMIT 1" | |
4293 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4276 | 4294 | NOTICE: nested_planner(3) |
4277 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4278 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4279 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4280 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4295 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4296 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4297 | + ORDER BY t_1.c1 LIMIT 1" | |
4298 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4299 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4300 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4301 | + ORDER BY t_1.c1 LIMIT 1" | |
4302 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4281 | 4303 | NOTICE: nested_planner(2) |
4282 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4283 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4284 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4285 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4286 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4287 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4304 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4305 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4306 | + ORDER BY t_1.c1 LIMIT 1" | |
4307 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4308 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4309 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4310 | + ORDER BY t_1.c1 LIMIT 1" | |
4311 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4312 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4313 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4314 | + ORDER BY t_1.c1 LIMIT 1" | |
4315 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4288 | 4316 | NOTICE: nested_planner(1) |
4289 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4290 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4291 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4292 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4293 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4294 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4295 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4296 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4317 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4318 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4319 | + ORDER BY t_1.c1 LIMIT 1" | |
4320 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4321 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4322 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4323 | + ORDER BY t_1.c1 LIMIT 1" | |
4324 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4325 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4326 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4327 | + ORDER BY t_1.c1 LIMIT 1" | |
4328 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4329 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4330 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4331 | + ORDER BY t_1.c1 LIMIT 1" | |
4332 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4333 | +LOG: pg_hint_plan: | |
4334 | +used hint: | |
4335 | +IndexScan(t_1) | |
4336 | +not used hint: | |
4337 | +duplication hint: | |
4338 | +error hint: | |
4339 | + | |
4340 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4341 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4342 | + ORDER BY t_1.c1 LIMIT 1" | |
4343 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4344 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4345 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4346 | + ORDER BY t_1.c1 LIMIT 1" | |
4347 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4348 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4349 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4350 | + ORDER BY t_1.c1 LIMIT 1" | |
4351 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4352 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4353 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4354 | + ORDER BY t_1.c1 LIMIT 1" | |
4355 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4356 | +LOG: pg_hint_plan: | |
4357 | +used hint: | |
4358 | +IndexScan(t_1) | |
4359 | +not used hint: | |
4360 | +duplication hint: | |
4361 | +error hint: | |
4362 | + | |
4363 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4364 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4365 | + ORDER BY t_1.c1 LIMIT 1" | |
4366 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4367 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4368 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4369 | + ORDER BY t_1.c1 LIMIT 1" | |
4370 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4371 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4372 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4373 | + ORDER BY t_1.c1 LIMIT 1" | |
4374 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4375 | +LOG: pg_hint_plan: | |
4376 | +used hint: | |
4377 | +IndexScan(t_1) | |
4378 | +not used hint: | |
4379 | +duplication hint: | |
4380 | +error hint: | |
4381 | + | |
4382 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4383 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4384 | + ORDER BY t_1.c1 LIMIT 1" | |
4385 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4386 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4387 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4388 | + ORDER BY t_1.c1 LIMIT 1" | |
4389 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4390 | +LOG: pg_hint_plan: | |
4391 | +used hint: | |
4392 | +IndexScan(t_1) | |
4393 | +not used hint: | |
4394 | +duplication hint: | |
4395 | +error hint: | |
4396 | + | |
4397 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4398 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4399 | + ORDER BY t_1.c1 LIMIT 1" | |
4400 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4297 | 4401 | QUERY PLAN |
4298 | 4402 | --------------------------------------- |
4299 | 4403 | Index Only Scan using t1_i1 on t1 t_1 |
@@ -4302,78 +4406,129 @@ PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | ||
4302 | 4406 | /*+SeqScan(t_2)*/ |
4303 | 4407 | EXPLAIN (COSTS false) SELECT nested_planner(5) FROM s1.t1 t_1 ORDER BY t_1.c1; |
4304 | 4408 | NOTICE: nested_planner(5) |
4409 | +LOG: pg_hint_plan: | |
4410 | +used hint: | |
4411 | +IndexScan(t_1) | |
4412 | +not used hint: | |
4413 | +duplication hint: | |
4414 | +error hint: | |
4415 | + | |
4416 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4417 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4418 | + ORDER BY t_1.c1 LIMIT 1" | |
4419 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4305 | 4420 | NOTICE: nested_planner(4) |
4306 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4307 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4421 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4422 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4423 | + ORDER BY t_1.c1 LIMIT 1" | |
4424 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4308 | 4425 | NOTICE: nested_planner(3) |
4309 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4310 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4311 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4312 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4426 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4427 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4428 | + ORDER BY t_1.c1 LIMIT 1" | |
4429 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4430 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4431 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4432 | + ORDER BY t_1.c1 LIMIT 1" | |
4433 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4313 | 4434 | NOTICE: nested_planner(2) |
4314 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4315 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4316 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4317 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4318 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4319 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4435 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4436 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4437 | + ORDER BY t_1.c1 LIMIT 1" | |
4438 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4439 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4440 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4441 | + ORDER BY t_1.c1 LIMIT 1" | |
4442 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4443 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4444 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4445 | + ORDER BY t_1.c1 LIMIT 1" | |
4446 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4320 | 4447 | NOTICE: nested_planner(1) |
4321 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4322 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4323 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4324 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4325 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4326 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4327 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4328 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4448 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4449 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4450 | + ORDER BY t_1.c1 LIMIT 1" | |
4451 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4452 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4453 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4454 | + ORDER BY t_1.c1 LIMIT 1" | |
4455 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4456 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4457 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4458 | + ORDER BY t_1.c1 LIMIT 1" | |
4459 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4460 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4461 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4462 | + ORDER BY t_1.c1 LIMIT 1" | |
4463 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4329 | 4464 | LOG: pg_hint_plan: |
4330 | 4465 | used hint: |
4331 | -SeqScan(t_2) | |
4466 | +IndexScan(t_1) | |
4332 | 4467 | not used hint: |
4333 | 4468 | duplication hint: |
4334 | 4469 | error hint: |
4335 | 4470 | |
4336 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4337 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4338 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4339 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4340 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4341 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4342 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4343 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4471 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4472 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4473 | + ORDER BY t_1.c1 LIMIT 1" | |
4474 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4475 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4476 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4477 | + ORDER BY t_1.c1 LIMIT 1" | |
4478 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4479 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4480 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4481 | + ORDER BY t_1.c1 LIMIT 1" | |
4482 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4483 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4484 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4485 | + ORDER BY t_1.c1 LIMIT 1" | |
4486 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4344 | 4487 | LOG: pg_hint_plan: |
4345 | 4488 | used hint: |
4346 | -SeqScan(t_2) | |
4489 | +IndexScan(t_1) | |
4347 | 4490 | not used hint: |
4348 | 4491 | duplication hint: |
4349 | 4492 | error hint: |
4350 | 4493 | |
4351 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4352 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4353 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4354 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4355 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4356 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4494 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4495 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4496 | + ORDER BY t_1.c1 LIMIT 1" | |
4497 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4498 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4499 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4500 | + ORDER BY t_1.c1 LIMIT 1" | |
4501 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4502 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4503 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4504 | + ORDER BY t_1.c1 LIMIT 1" | |
4505 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4357 | 4506 | LOG: pg_hint_plan: |
4358 | 4507 | used hint: |
4359 | -SeqScan(t_2) | |
4508 | +IndexScan(t_1) | |
4360 | 4509 | not used hint: |
4361 | 4510 | duplication hint: |
4362 | 4511 | error hint: |
4363 | 4512 | |
4364 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4365 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4366 | -SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4367 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4513 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4514 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4515 | + ORDER BY t_1.c1 LIMIT 1" | |
4516 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4517 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4518 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4519 | + ORDER BY t_1.c1 LIMIT 1" | |
4520 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4368 | 4521 | LOG: pg_hint_plan: |
4369 | 4522 | used hint: |
4370 | -SeqScan(t_2) | |
4523 | +IndexScan(t_1) | |
4371 | 4524 | not used hint: |
4372 | 4525 | duplication hint: |
4373 | 4526 | error hint: |
4374 | 4527 | |
4375 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4376 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4528 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4529 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4530 | + ORDER BY t_1.c1 LIMIT 1" | |
4531 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4377 | 4532 | LOG: pg_hint_plan: |
4378 | 4533 | used hint: |
4379 | 4534 | not used hint: |
@@ -4397,17 +4552,21 @@ EXPLAIN (COSTS false) | ||
4397 | 4552 | ORDER BY t_1.c1; |
4398 | 4553 | NOTICE: nested_planner(2) |
4399 | 4554 | NOTICE: nested_planner(1) |
4400 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4401 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4555 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4556 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4557 | + ORDER BY t_1.c1 LIMIT 1" | |
4558 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4402 | 4559 | LOG: pg_hint_plan: |
4403 | 4560 | used hint: |
4404 | -HashJoin(t_1 t_2) | |
4561 | +IndexScan(t_1) | |
4405 | 4562 | not used hint: |
4406 | 4563 | duplication hint: |
4407 | 4564 | error hint: |
4408 | 4565 | |
4409 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4410 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4566 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4567 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4568 | + ORDER BY t_1.c1 LIMIT 1" | |
4569 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4411 | 4570 | LOG: pg_hint_plan: |
4412 | 4571 | used hint: |
4413 | 4572 | HashJoin(t_1 t_2) |
@@ -4434,17 +4593,21 @@ EXPLAIN (COSTS false) | ||
4434 | 4593 | ORDER BY st_1.c1; |
4435 | 4594 | NOTICE: nested_planner(2) |
4436 | 4595 | NOTICE: nested_planner(1) |
4437 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4438 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4596 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4597 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4598 | + ORDER BY t_1.c1 LIMIT 1" | |
4599 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4439 | 4600 | LOG: pg_hint_plan: |
4440 | 4601 | used hint: |
4602 | +IndexScan(t_1) | |
4441 | 4603 | not used hint: |
4442 | -HashJoin(st_1 st_2) | |
4443 | 4604 | duplication hint: |
4444 | 4605 | error hint: |
4445 | 4606 | |
4446 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4447 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4607 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4608 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4609 | + ORDER BY t_1.c1 LIMIT 1" | |
4610 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4448 | 4611 | LOG: pg_hint_plan: |
4449 | 4612 | used hint: |
4450 | 4613 | HashJoin(st_1 st_2) |
@@ -4471,17 +4634,21 @@ EXPLAIN (COSTS false) | ||
4471 | 4634 | ORDER BY st_1.c1; |
4472 | 4635 | NOTICE: nested_planner(2) |
4473 | 4636 | NOTICE: nested_planner(1) |
4474 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4475 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4637 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4638 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4639 | + ORDER BY t_1.c1 LIMIT 1" | |
4640 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4476 | 4641 | LOG: pg_hint_plan: |
4477 | 4642 | used hint: |
4478 | -HashJoin(t_1 t_2) | |
4643 | +IndexScan(t_1) | |
4479 | 4644 | not used hint: |
4480 | 4645 | duplication hint: |
4481 | 4646 | error hint: |
4482 | 4647 | |
4483 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4484 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4648 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4649 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4650 | + ORDER BY t_1.c1 LIMIT 1" | |
4651 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4485 | 4652 | LOG: pg_hint_plan: |
4486 | 4653 | used hint: |
4487 | 4654 | not used hint: |
@@ -4507,17 +4674,21 @@ EXPLAIN (COSTS false) | ||
4507 | 4674 | ORDER BY t_1.c1; |
4508 | 4675 | NOTICE: nested_planner(2) |
4509 | 4676 | NOTICE: nested_planner(1) |
4510 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4511 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4677 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4678 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4679 | + ORDER BY t_1.c1 LIMIT 1" | |
4680 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4512 | 4681 | LOG: pg_hint_plan: |
4513 | 4682 | used hint: |
4683 | +IndexScan(t_1) | |
4514 | 4684 | not used hint: |
4515 | -HashJoin(st_1 st_2) | |
4516 | 4685 | duplication hint: |
4517 | 4686 | error hint: |
4518 | 4687 | |
4519 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4520 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4688 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4689 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4690 | + ORDER BY t_1.c1 LIMIT 1" | |
4691 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4521 | 4692 | LOG: pg_hint_plan: |
4522 | 4693 | used hint: |
4523 | 4694 | not used hint: |
@@ -4542,21 +4713,21 @@ EXPLAIN (COSTS false) | ||
4542 | 4713 | ORDER BY t_1.c1; |
4543 | 4714 | NOTICE: nested_planner(2) |
4544 | 4715 | NOTICE: nested_planner(1) |
4545 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4546 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4547 | -INFO: hint syntax error at or near "HashJoin(t_1 t_1)" | |
4548 | -DETAIL: Relation name "t_1" is duplicated. | |
4549 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4550 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4716 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4717 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4718 | + ORDER BY t_1.c1 LIMIT 1" | |
4719 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4551 | 4720 | LOG: pg_hint_plan: |
4552 | 4721 | used hint: |
4722 | +IndexScan(t_1) | |
4553 | 4723 | not used hint: |
4554 | 4724 | duplication hint: |
4555 | 4725 | error hint: |
4556 | -HashJoin(t_1 t_1) | |
4557 | 4726 | |
4558 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4559 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4727 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4728 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4729 | + ORDER BY t_1.c1 LIMIT 1" | |
4730 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4560 | 4731 | LOG: pg_hint_plan: |
4561 | 4732 | used hint: |
4562 | 4733 | not used hint: |
@@ -4580,10 +4751,9 @@ BEGIN | ||
4580 | 4751 | RETURN 0; |
4581 | 4752 | END IF; |
4582 | 4753 | |
4583 | - EXECUTE '/*+ IndexScan(t_1) */' | |
4584 | - ' SELECT nested_planner_one_t($1) FROM s1.t1 t_1' | |
4585 | - ' ORDER BY t_1.c1 LIMIT 1' | |
4586 | - INTO new_cnt USING cnt - 1; | |
4754 | + SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) INTO new_cnt | |
4755 | + FROM s1.t1 t_1 | |
4756 | + ORDER BY t_1.c1 LIMIT 1; | |
4587 | 4757 | |
4588 | 4758 | RETURN new_cnt; |
4589 | 4759 | END; |
@@ -4594,8 +4764,30 @@ EXPLAIN (COSTS false) | ||
4594 | 4764 | ORDER BY t_1.c1; |
4595 | 4765 | NOTICE: nested_planner_one_t(2) |
4596 | 4766 | NOTICE: nested_planner_one_t(1) |
4597 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner_one_t($1) FROM s1.t1 t_1 ORDER BY t_1.c1 LIMIT 1" | |
4598 | -PL/pgSQL function nested_planner_one_t(integer) line 11 at EXECUTE statement | |
4767 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) FROM s1.t1 t_1 | |
4768 | + ORDER BY t_1.c1 LIMIT 1" | |
4769 | +PL/pgSQL function nested_planner_one_t(integer) line 11 at SQL statement | |
4770 | +LOG: pg_hint_plan: | |
4771 | +used hint: | |
4772 | +not used hint: | |
4773 | +IndexScan(t_1) | |
4774 | +duplication hint: | |
4775 | +error hint: | |
4776 | + | |
4777 | +CONTEXT: PL/pgSQL function nested_planner_one_t(integer) line 8 at RETURN | |
4778 | +SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) FROM s1.t1 t_1 | |
4779 | + ORDER BY t_1.c1 LIMIT 1" | |
4780 | +PL/pgSQL function nested_planner_one_t(integer) line 11 at SQL statement | |
4781 | +LOG: pg_hint_plan: | |
4782 | +used hint: | |
4783 | +IndexScan(t_1) | |
4784 | +not used hint: | |
4785 | +duplication hint: | |
4786 | +error hint: | |
4787 | + | |
4788 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) FROM s1.t1 t_1 | |
4789 | + ORDER BY t_1.c1 LIMIT 1" | |
4790 | +PL/pgSQL function nested_planner_one_t(integer) line 11 at SQL statement | |
4599 | 4791 | QUERY PLAN |
4600 | 4792 | --------------------------------------------- |
4601 | 4793 | Merge Join |
@@ -4613,17 +4805,19 @@ EXPLAIN (COSTS false) | ||
4613 | 4805 | ORDER BY t_1.c1; |
4614 | 4806 | NOTICE: nested_planner_one_t(2) |
4615 | 4807 | NOTICE: nested_planner_one_t(1) |
4616 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner_one_t($1) FROM s1.t1 t_1 ORDER BY t_1.c1 LIMIT 1" | |
4617 | -PL/pgSQL function nested_planner_one_t(integer) line 11 at EXECUTE statement | |
4808 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) FROM s1.t1 t_1 | |
4809 | + ORDER BY t_1.c1 LIMIT 1" | |
4810 | +PL/pgSQL function nested_planner_one_t(integer) line 11 at SQL statement | |
4618 | 4811 | LOG: pg_hint_plan: |
4619 | 4812 | used hint: |
4813 | +IndexScan(t_1) | |
4620 | 4814 | not used hint: |
4621 | -HashJoin(t_1 t_1) | |
4622 | 4815 | duplication hint: |
4623 | 4816 | error hint: |
4624 | 4817 | |
4625 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner_one_t($1) FROM s1.t1 t_1 ORDER BY t_1.c1 LIMIT 1" | |
4626 | -PL/pgSQL function nested_planner_one_t(integer) line 11 at EXECUTE statement | |
4818 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) FROM s1.t1 t_1 | |
4819 | + ORDER BY t_1.c1 LIMIT 1" | |
4820 | +PL/pgSQL function nested_planner_one_t(integer) line 11 at SQL statement | |
4627 | 4821 | INFO: hint syntax error at or near "HashJoin(t_1 t_1)" |
4628 | 4822 | DETAIL: Relation name "t_1" is duplicated. |
4629 | 4823 | LOG: pg_hint_plan: |
@@ -4652,21 +4846,21 @@ EXPLAIN (COSTS false) | ||
4652 | 4846 | ORDER BY t_1.c1; |
4653 | 4847 | NOTICE: nested_planner(2) |
4654 | 4848 | NOTICE: nested_planner(1) |
4655 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4656 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4657 | -INFO: hint syntax error at or near "HashJoin(t_1 t_1)" | |
4658 | -DETAIL: Relation name "t_1" is duplicated. | |
4659 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4660 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4849 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4850 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4851 | + ORDER BY t_1.c1 LIMIT 1" | |
4852 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4661 | 4853 | LOG: pg_hint_plan: |
4662 | 4854 | used hint: |
4855 | +IndexScan(t_1) | |
4663 | 4856 | not used hint: |
4664 | 4857 | duplication hint: |
4665 | 4858 | error hint: |
4666 | -HashJoin(t_1 t_1) | |
4667 | 4859 | |
4668 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4669 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4860 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4861 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4862 | + ORDER BY t_1.c1 LIMIT 1" | |
4863 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4670 | 4864 | INFO: hint syntax error at or near "HashJoin(t_1 t_1)" |
4671 | 4865 | DETAIL: Relation name "t_1" is duplicated. |
4672 | 4866 | LOG: pg_hint_plan: |
@@ -4695,23 +4889,22 @@ EXPLAIN (COSTS false) | ||
4695 | 4889 | INFO: hint syntax error at or near "MergeJoin(t_1 t_2)HashJoin(t_1 t_2)" |
4696 | 4890 | DETAIL: Conflict join method hint. |
4697 | 4891 | NOTICE: nested_planner(2) |
4698 | -INFO: hint syntax error at or near "MergeJoin(t_1 t_2)HashJoin(t_1 t_2)" | |
4699 | -DETAIL: Conflict join method hint. | |
4700 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4701 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4702 | 4892 | NOTICE: nested_planner(1) |
4703 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4704 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4893 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4894 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4895 | + ORDER BY t_1.c1 LIMIT 1" | |
4896 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4705 | 4897 | LOG: pg_hint_plan: |
4706 | 4898 | used hint: |
4707 | -HashJoin(t_1 t_2) | |
4899 | +IndexScan(t_1) | |
4708 | 4900 | not used hint: |
4709 | 4901 | duplication hint: |
4710 | -MergeJoin(t_1 t_2) | |
4711 | 4902 | error hint: |
4712 | 4903 | |
4713 | -CONTEXT: SQL statement "/*+ IndexScan(t_1) */ SELECT nested_planner($1) FROM s1.t1 t_1 JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) ORDER BY t_1.c1 LIMIT 1" | |
4714 | -PL/pgSQL function nested_planner(integer) line 12 at EXECUTE statement | |
4904 | +CONTEXT: SQL statement "SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) FROM s1.t1 t_1 | |
4905 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
4906 | + ORDER BY t_1.c1 LIMIT 1" | |
4907 | +PL/pgSQL function nested_planner(integer) line 12 at SQL statement | |
4715 | 4908 | LOG: pg_hint_plan: |
4716 | 4909 | used hint: |
4717 | 4910 | HashJoin(t_1 t_2) |
@@ -1074,11 +1074,10 @@ BEGIN | ||
1074 | 1074 | RETURN 0; |
1075 | 1075 | END IF; |
1076 | 1076 | |
1077 | - EXECUTE '/*+ IndexScan(t_1) */' | |
1078 | - ' SELECT nested_planner($1) FROM s1.t1 t_1' | |
1079 | - ' JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1)' | |
1080 | - ' ORDER BY t_1.c1 LIMIT 1' | |
1081 | - INTO new_cnt USING cnt - 1; | |
1077 | + SELECT /*+ IndexScan(t_1) */ nested_planner(cnt - 1) INTO new_cnt | |
1078 | + FROM s1.t1 t_1 | |
1079 | + JOIN s1.t2 t_2 ON (t_1.c1 = t_2.c1) | |
1080 | + ORDER BY t_1.c1 LIMIT 1; | |
1082 | 1081 | |
1083 | 1082 | RETURN new_cnt; |
1084 | 1083 | END; |
@@ -1161,10 +1160,9 @@ BEGIN | ||
1161 | 1160 | RETURN 0; |
1162 | 1161 | END IF; |
1163 | 1162 | |
1164 | - EXECUTE '/*+ IndexScan(t_1) */' | |
1165 | - ' SELECT nested_planner_one_t($1) FROM s1.t1 t_1' | |
1166 | - ' ORDER BY t_1.c1 LIMIT 1' | |
1167 | - INTO new_cnt USING cnt - 1; | |
1163 | + SELECT /*+ IndexScan(t_1) */ nested_planner_one_t(cnt - 1) INTO new_cnt | |
1164 | + FROM s1.t1 t_1 | |
1165 | + ORDER BY t_1.c1 LIMIT 1; | |
1168 | 1166 | |
1169 | 1167 | RETURN new_cnt; |
1170 | 1168 | END; |