有两张桌子
customer
(分区于customer_batch_id
)type_stage
(非分区,用于某些计算的阶段表)
type_stage
完全为空,没有空值,没有空字符串,我的意思是表没有/零行。当我执行以下查询时,它会扫描每个分区,customer
当有更多分区时需要很长时间。
inner join
当不存在type_stage
将跳过分区序列扫描并减少执行时间的记录时,我们如何跳过此操作。
explain analyse
selct * from type_stage ts
inner join customer c on ts.to_id = c.customer_batch_id
where c.order_date <= cast(ts.ini_date as date);
我尝试像这样在内部连接上添加空检查
inner join customer c on ts.to_id is not null and ts.to_id = c.customer_batch_id
但没有行,type_stage
它再次给出相同的计划
计划:
Hash Join (cost=13.82..17486.32 rows=374109 width=519) (actual time=82.164..82.329 rows=0 loops=1)
Hash Cond: (c.customer_batch_id = ts.to_id)
-> Append (cost=0.00..12080.92 rows=440128 width=72) (actual time=81.724..81.887 rows=1 loops=1)
-> Seq Scan on customer_partition_1 c (cost=0.00..18.10 rows=810 width=72) (actual time=0.564..0.564 rows=0 loops=1)
-> Seq Scan on customer_partition_2 c_1 (cost=0.00..18.10 rows=810 width=72) (actual time=0.373..0.374 rows=0 loops=1)
-> Seq Scan on customer_partition_3 c_2 (cost=0.00..18.10 rows=810 width=72) (actual time=0.394..0.394 rows=0 loops=1)
-> Seq Scan on customer_partition_4 c_3 (cost=0.00..18.10 rows=810 width=72) (actual time=0.343..0.343 rows=0 loops=1)
-> Seq Scan on customer_partition_5 c_4 (cost=0.00..18.10 rows=810 width=72) (actual time=0.337..0.337 rows=0 loops=1)
-> Seq Scan on customer_partition_6 c_5 (cost=0.00..18.10 rows=810 width=72) (actual time=0.326..0.326 rows=0 loops=1)
-> Seq Scan on customer_partition_7 c_6 (cost=0.00..18.10 rows=810 width=72) (actual time=0.314..0.314 rows=0 loops=1)
-> Seq Scan on customer_partition_8 c_7 (cost=0.00..18.10 rows=810 width=72) (actual time=0.317..0.318 rows=0 loops=1)
-> Seq Scan on customer_partition_9 c_8 (cost=0.00..18.10 rows=810 width=72) (actual time=0.328..0.328 rows=0 loops=1)
-> Seq Scan on customer_partition_102 c_41 (cost=0.00..18.10 rows=810 width=72) (actual time=0.235..0.235 rows=0 loops=1)
-> Seq Scan on customer_partition_103 c_42 (cost=0.00..18.10 rows=810 width=72) (actual time=0.270..0.270 rows=0 loops=1)
-> Seq Scan on customer_partition_104 c_43 (cost=0.00..18.10 rows=810 width=72) (actual time=0.242..0.242 rows=0 loops=1)
-> Seq Scan on customer_partition_105 c_44 (cost=0.00..18.10 rows=810 width=72) (actual time=0.243..0.244 rows=0 loops=1)
-> Seq Scan on customer_partition_106 c_45 (cost=0.00..18.10 rows=810 width=72) (actual time=0.237..0.237 rows=0 loops=1)
-> Seq Scan on customer_partition_107 c_46 (cost=0.00..18.10 rows=810 width=72) (actual time=0.282..0.282 rows=0 loops=1)
-> Seq Scan on customer_partition_134 c_73 (cost=0.00..18.10 rows=810 width=72) (actual time=0.242..0.242 rows=0 loops=1)
-> Seq Scan on customer_partition_135 c_74 (cost=0.00..18.10 rows=810 width=72) (actual time=0.242..0.242 rows=0 loops=1)
-> Seq Scan on customer_partition_136 c_75 (cost=0.00..18.10 rows=810 width=72) (actual time=0.307..0.307 rows=0 loops=1)
-> Seq Scan on customer_partition_137 c_76 (cost=0.00..18.10 rows=810 width=72) (actual time=0.300..0.300 rows=0 loops=1)
-> Seq Scan on customer_partition_138 c_77 (cost=0.00..18.10 rows=810 width=72) (actual time=0.243..0.243 rows=0 loops=1)
-> Seq Scan on customer_partition_139 c_78 (cost=0.00..18.10 rows=810 width=72) (actual time=0.240..0.240 rows=0 loops=1)
-> Seq Scan on customer_partition_140 c_79 (cost=0.00..18.10 rows=810 width=72) (actual time=0.288..0.288 rows=0 loops=1)
-> Seq Scan on customer_partition_141 c_80 (cost=0.00..18.10 rows=810 width=72) (actual time=0.242..0.242 rows=0 loops=1)
-> Seq Scan on customer_partition_142 c_81 (cost=0.00..18.10 rows=810 width=72) (actual time=0.241..0.241 rows=0 loops=1)
-> Seq Scan on customer_partition_143 c_82 (cost=0.00..18.10 rows=810 width=72) (actual time=0.241..0.241 rows=0 loops=1)
-> Seq Scan on customer_partition_144 c_83 (cost=0.00..18.10 rows=810 width=72) (actual time=0.253..0.253 rows=0 loops=1)
-> Seq Scan on customer_partition_145 c_84 (cost=0.00..18.10 rows=810 width=72) (actual time=0.236..0.236 rows=0 loops=1)
-> Seq Scan on customer_partition_146 c_85 (cost=0.00..18.10 rows=810 width=72) (actual time=0.238..0.239 rows=0 loops=1)
-> Seq Scan on customer_partition_147 c_86 (cost=0.00..18.10 rows=810 width=72) (actual time=0.238..0.238 rows=0 loops=1)
-> Seq Scan on customer_partition_148 c_87 (cost=0.00..18.10 rows=810 width=72) (actual time=0.397..0.397 rows=0 loops=1)
-> Seq Scan on customer_partition_149 c_88 (cost=0.00..18.10 rows=810 width=72) (actual time=0.269..0.269 rows=0 loops=1)
-> Seq Scan on customer_partition_150 c_89 (cost=0.00..18.10 rows=810 width=72) (actual time=0.250..0.250 rows=0 loops=1)
-> Seq Scan on customer_partition_151 c_90 (cost=0.00..18.10 rows=810 width=72) (actual time=0.299..0.300 rows=0 loops=1)
-> Seq Scan on customer_partition_152 c_91 (cost=0.00..18.10 rows=810 width=72) (actual time=0.304..0.304 rows=0 loops=1)
-> Seq Scan on customer_partition_153 c_92 (cost=0.00..18.10 rows=810 width=72) (actual time=0.297..0.298 rows=0 loops=1)
-> Seq Scan on customer_partition_154 c_93 (cost=0.00..18.10 rows=810 width=72) (actual time=0.250..0.250 rows=0 loops=1)
-> Seq Scan on customer_partition_155 c_94 (cost=0.00..18.10 rows=810 width=72) (actual time=0.241..0.241 rows=0 loops=1)
-> Seq Scan on customer_partition_156 c_95 (cost=0.00..18.10 rows=810 width=72) (actual time=0.242..0.242 rows=0 loops=1)
-> Seq Scan on customer_partition_157 c_96 (cost=0.00..18.10 rows=810 width=72) (actual time=0.237..0.237 rows=0 loops=1)
-> Seq Scan on customer_partition_158 c_97 (cost=0.00..18.10 rows=810 width=72) (actual time=0.240..0.240 rows=0 loops=1)
-> Seq Scan on customer_partition_159 c_98 (cost=0.00..18.10 rows=810 width=72) (actual time=0.275..0.275 rows=0 loops=1)
-> Seq Scan on customer_partition_160 c_99 (cost=0.00..18.10 rows=810 width=72) (actual time=0.243..0.244 rows=0 loops=1)
-> Seq Scan on customer_partition_161 c_100 (cost=0.00..18.10 rows=810 width=72) (actual time=0.266..0.266 rows=0 loops=1)
-> Seq Scan on customer_partition_179 c_118 (cost=0.00..18.10 rows=810 width=72) (actual time=0.243..0.243 rows=0 loops=1)
-> Seq Scan on customer_partition_180 c_119 (cost=0.00..18.10 rows=810 width=72) (actual time=0.240..0.240 rows=0 loops=1)
-> Seq Scan on customer_partition_181 c_120 (cost=0.00..18.10 rows=810 width=72) (actual time=0.237..0.237 rows=0 loops=1)
-> Seq Scan on customer_partition_182 c_121 (cost=0.00..18.10 rows=810 width=72) (actual time=0.243..0.243 rows=0 loops=1)
-> Seq Scan on customer_partition_183 c_122 (cost=0.00..18.10 rows=810 width=72) (actual time=0.238..0.239 rows=0 loops=1)
-> Seq Scan on customer_partition_184 c_123 (cost=0.00..18.10 rows=810 width=72) (actual time=0.233..0.234 rows=0 loops=1)
-> Seq Scan on customer_partition_185 c_124 (cost=0.00..18.10 rows=810 width=72) (actual time=0.294..0.294 rows=0 loops=1)
-> Seq Scan on customer_partition_186 c_125 (cost=0.00..18.10 rows=810 width=72) (actual time=0.289..0.289 rows=0 loops=1)
-> Seq Scan on customer_partition_187 c_126 (cost=0.00..18.10 rows=810 width=72) (actual time=0.246..0.246 rows=0 loops=1)
-> Seq Scan on customer_partition_213 c_152 (cost=0.00..18.10 rows=810 width=72) (actual time=0.235..0.235 rows=0 loops=1)
-> Seq Scan on customer_partition_214 c_153 (cost=0.00..18.10 rows=810 width=72) (actual time=0.234..0.234 rows=0 loops=1)
-> Seq Scan on customer_partition_215 c_154 (cost=0.00..18.10 rows=810 width=72) (actual time=0.301..0.301 rows=0 loops=1)
-> Seq Scan on customer_partition_216 c_155 (cost=0.00..18.10 rows=810 width=72) (actual time=0.297..0.297 rows=0 loops=1)
-> Seq Scan on customer_partition_217 c_156 (cost=0.00..18.10 rows=810 width=72) (actual time=0.239..0.239 rows=0 loops=1)
-> Seq Scan on customer_partition_218 c_157 (cost=0.00..18.10 rows=810 width=72) (actual time=0.239..0.239 rows=0 loops=1)
-> Seq Scan on customer_partition_219 c_158 (cost=0.00..18.10 rows=810 width=72) (actual time=0.262..0.262 rows=0 loops=1)
-> Seq Scan on customer_partition_220 c_159 (cost=0.00..18.10 rows=810 width=72) (actual time=0.240..0.240 rows=0 loops=1)
-> Seq Scan on customer_partition_221 c_160 (cost=0.00..18.10 rows=810 width=72) (actual time=0.237..0.237 rows=0 loops=1)
-> Seq Scan on customer_partition_222 c_161 (cost=0.00..18.10 rows=810 width=72) (actual time=0.235..0.235 rows=0 loops=1)
-> Seq Scan on customer_partition_223 c_162 (cost=0.00..18.10 rows=810 width=72) (actual time=0.246..0.246 rows=0 loops=1)
-> Seq Scan on customer_partition_232 c_163 (cost=0.00..18.10 rows=810 width=72) (actual time=0.239..0.240 rows=0 loops=1)
-> Seq Scan on customer_partition_233 c_164 (cost=0.00..18.10 rows=810 width=72) (actual time=0.235..0.235 rows=0 loops=1)
-> Seq Scan on customer_partition_234 c_165 (cost=0.00..18.10 rows=810 width=72) (actual time=0.236..0.236 rows=0 loops=1)
-> Seq Scan on customer_partition_235 c_166 (cost=0.00..18.10 rows=810 width=72) (actual time=0.330..0.331 rows=0 loops=1)
-> Seq Scan on customer_partition_265 c_167 (cost=0.00..18.10 rows=810 width=72) (actual time=0.263..0.263 rows=0 loops=1)
-> Seq Scan on customer_partition_298 c_168 (cost=0.00..18.10 rows=810 width=72) (actual time=0.238..0.238 rows=0 loops=1)
-> Seq Scan on customer_partition_331 c_169 (cost=0.00..18.10 rows=810 width=72) (actual time=0.236..0.236 rows=0 loops=1)
-> Seq Scan on customer_partition_332 c_170 (cost=0.00..18.10 rows=810 width=72) (actual time=0.253..0.253 rows=0 loops=1)
-> Seq Scan on customer_partition_364 c_171 (cost=0.00..18.10 rows=810 width=72) (actual time=0.235..0.236 rows=0 loops=1)
-> Seq Scan on customer_partition_365 c_172 (cost=0.00..18.10 rows=810 width=72) (actual time=0.236..0.236 rows=0 loops=1)
-> Seq Scan on customer_partition_366 c_173 (cost=0.00..18.10 rows=810 width=72) (actual time=0.235..0.235 rows=0 loops=1)
-> Seq Scan on customer_partition_367 c_174 (cost=0.00..18.10 rows=810 width=72) (actual time=0.268..0.268 rows=0 loops=1)
-> Seq Scan on customer_partition_368 c_175 (cost=0.00..18.10 rows=810 width=72) (actual time=0.240..0.240 rows=0 loops=1)
-> Seq Scan on customer_partition_369 c_176 (cost=0.00..18.10 rows=810 width=72) (actual time=0.235..0.236 rows=0 loops=1)
-> Seq Scan on customer_partition_370 c_177 (cost=0.00..18.10 rows=810 width=72) (actual time=0.239..0.239 rows=0 loops=1)
-> Seq Scan on customer_partition_371 c_178 (cost=0.00..18.10 rows=810 width=72) (actual time=0.263..0.263 rows=0 loops=1)
-> Seq Scan on customer_partition_372 c_179 (cost=0.00..18.10 rows=810 width=72) (actual time=0.236..0.236 rows=0 loops=1)
-> Seq Scan on customer_partition_373 c_180 (cost=0.00..18.10 rows=810 width=72) (actual time=0.237..0.237 rows=0 loops=1)
-> Seq Scan on customer_partition_374 c_181 (cost=0.00..18.10 rows=810 width=72) (actual time=0.247..0.247 rows=0 loops=1)
-> Seq Scan on customer_partition_375 c_182 (cost=0.00..18.10 rows=810 width=72) (actual time=0.250..0.250 rows=0 loops=1)
-> Seq Scan on customer_partition_376 c_183 (cost=0.00..18.10 rows=810 width=72) (actual time=0.239..0.239 rows=0 loops=1)
-> Seq Scan on customer_partition_377 c_184 (cost=0.00..18.10 rows=810 width=72) (actual time=0.236..0.237 rows=0 loops=1)
-> Seq Scan on customer_partition_378 c_185 (cost=0.00..18.10 rows=810 width=72) (actual time=0.240..0.240 rows=0 loops=1)
-> Seq Scan on customer_partition_379 c_186 (cost=0.00..18.10 rows=810 width=72) (actual time=0.263..0.263 rows=0 loops=1)
-> Seq Scan on customer_partition_380 c_187 (cost=0.00..18.10 rows=810 width=72) (actual time=0.240..0.241 rows=0 loops=1)
-> Seq Scan on customer_partition_381 c_188 (cost=0.00..18.10 rows=810 width=72) (actual time=0.237..0.237 rows=0 loops=1)
-> Seq Scan on customer_partition_382 c_189 (cost=0.00..18.10 rows=810 width=72) (actual time=0.240..0.240 rows=0 loops=1)
-> Seq Scan on customer_partition_383 c_190 (cost=0.00..18.10 rows=810 width=72) (actual time=0.317..0.317 rows=0 loops=1)
-> Seq Scan on customer_partition_384 c_191 (cost=0.00..18.10 rows=810 width=72) (actual time=0.303..0.303 rows=0 loops=1)
-> Seq Scan on customer_partition_397 c_192 (cost=0.00..18.10 rows=810 width=72) (actual time=0.343..0.343 rows=0 loops=1)
-> Seq Scan on customer_partition_398 c_193 (cost=0.00..18.10 rows=810 width=72) (actual time=0.362..0.362 rows=0 loops=1)
-> Seq Scan on customer_partition_399 c_194 (cost=0.00..18.10 rows=810 width=72) (actual time=0.315..0.316 rows=0 loops=1)
-> Seq Scan on customer_partition_400 c_195 (cost=0.00..18.10 rows=810 width=72) (actual time=0.250..0.250 rows=0 loops=1)
-> Seq Scan on customer_partition_401 c_196 (cost=0.00..18.10 rows=810 width=72) (actual time=0.266..0.266 rows=0 loops=1)
-> Seq Scan on customer_partition_402 c_197 (cost=0.00..18.10 rows=810 width=72) (actual time=0.349..0.349 rows=0 loops=1)
-> Seq Scan on customer_partition_403 c_198 (cost=0.00..18.10 rows=810 width=72) (actual time=0.358..0.358 rows=0 loops=1)
-> Seq Scan on customer_partition_471 c_219 (cost=0.00..18.10 rows=810 width=72) (actual time=0.354..0.355 rows=0 loops=1)
-> Seq Scan on customer_partition_472 c_220 (cost=0.00..18.10 rows=810 width=72) (actual time=0.358..0.359 rows=0 loops=1)
-> Seq Scan on customer_partition_473 c_221 (cost=0.00..18.10 rows=810 width=72) (actual time=0.388..0.388 rows=0 loops=1)
-> Seq Scan on customer_partition_474 c_222 (cost=0.00..18.10 rows=810 width=72) (actual time=0.270..0.270 rows=0 loops=1)
-> Seq Scan on customer_partition_475 c_223 (cost=0.00..18.10 rows=810 width=72) (actual time=0.259..0.260 rows=0 loops=1)
-> Seq Scan on customer_partition_476 c_224 (cost=0.00..18.10 rows=810 width=72) (actual time=0.292..0.292 rows=0 loops=1)
-> Seq Scan on customer_partition_477 c_225 (cost=0.00..18.10 rows=810 width=72) (actual time=0.280..0.280 rows=0 loops=1)
-> Seq Scan on customer_partition_478 c_226 (cost=0.00..18.10 rows=810 width=72) (actual time=0.361..0.361 rows=0 loops=1)
-> Seq Scan on customer_partition_479 c_227 (cost=0.00..18.10 rows=810 width=72) (actual time=0.384..0.384 rows=0 loops=1)
-> Seq Scan on customer_partition_480 c_228 (cost=0.00..18.10 rows=810 width=72) (actual time=0.342..0.342 rows=0 loops=1)
-> Seq Scan on customer_partition_481 c_229 (cost=0.00..18.10 rows=810 width=72) (actual time=0.358..0.358 rows=0 loops=1)
-> Seq Scan on customer_partition_482 c_230 (cost=0.00..18.10 rows=810 width=72) (actual time=0.367..0.367 rows=0 loops=1)
-> Seq Scan on customer_partition_483 c_231 (cost=0.00..18.10 rows=810 width=72) (actual time=0.340..0.340 rows=0 loops=1)
-> Seq Scan on customer_partition_517 c_265 (cost=0.00..18.10 rows=810 width=72) (actual time=0.336..0.337 rows=0 loops=1)
-> Seq Scan on customer_partition_518 c_266 (cost=0.00..18.10 rows=810 width=72) (actual time=0.352..0.352 rows=0 loops=1)
-> Seq Scan on customer_partition_519 c_267 (cost=0.00..18.10 rows=810 width=72) (actual time=0.374..0.375 rows=0 loops=1)
-> Seq Scan on customer_partition_520 c_268 (cost=0.00..18.10 rows=810 width=72) (actual time=0.361..0.361 rows=0 loops=1)
-> Seq Scan on customer_partition_521 c_269 (cost=0.00..18.10 rows=810 width=72) (actual time=0.362..0.362 rows=0 loops=1)
-> Seq Scan on customer_partition_522 c_270 (cost=0.00..18.10 rows=810 width=72) (actual time=0.312..0.312 rows=0 loops=1)
-> Seq Scan on customer_partition_523 c_271 (cost=0.00..18.10 rows=810 width=72) (actual time=0.353..0.353 rows=0 loops=1)
-> Seq Scan on customer_partition_524 c_272 (cost=0.00..18.10 rows=810 width=72) (actual time=0.381..0.381 rows=0 loops=1)
-> Seq Scan on customer_partition_525 c_273 (cost=0.00..18.10 rows=810 width=72) (actual time=0.352..0.352 rows=0 loops=1)
-> Seq Scan on customer_partition_526 c_274 (cost=0.00..18.10 rows=810 width=72) (actual time=0.340..0.340 rows=0 loops=1)
-> Seq Scan on customer_partition_527 c_275 (cost=0.00..18.10 rows=810 width=72) (actual time=0.350..0.350 rows=0 loops=1)
-> Seq Scan on customer_partition_528 c_276 (cost=0.00..18.10 rows=810 width=72) (actual time=0.358..0.358 rows=0 loops=1)
-> Seq Scan on customer_partition_529 c_277 (cost=0.00..18.10 rows=810 width=72) (actual time=0.347..0.347 rows=0 loops=1)
-> Seq Scan on customer_partition_530 c_278 (cost=0.00..18.10 rows=810 width=72) (actual time=0.322..0.322 rows=0 loops=1)
-> Seq Scan on customer_partition_531 c_279 (cost=0.00..1.02 rows=2 width=72) (actual time=0.365..0.365 rows=1 loops=1)
-> Seq Scan on customer_partition_532 c_280 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_533 c_281 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_534 c_282 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_535 c_283 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_536 c_284 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_537 c_285 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_538 c_286 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_539 c_287 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_540 c_288 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_541 c_289 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_542 c_290 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_543 c_291 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_544 c_292 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_545 c_293 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_546 c_294 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_547 c_295 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_548 c_296 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_549 c_297 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_550 c_298 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_551 c_299 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_552 c_300 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_553 c_301 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_554 c_302 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_555 c_303 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_556 c_304 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_557 c_305 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_558 c_306 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_559 c_307 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_560 c_308 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_561 c_309 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_562 c_310 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_563 c_311 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_564 c_312 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_565 c_313 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_566 c_314 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_567 c_315 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_568 c_316 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_569 c_317 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_570 c_318 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_571 c_319 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_572 c_320 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_573 c_321 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_574 c_322 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_575 c_323 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_576 c_324 (cost=0.00..1.02 rows=2 width=72) (never excuted)
-> Seq Scan on customer_partition_577 c_325 (cost=0.00..1.02 rows=2 width=72) (never excuted)
-> Seq Scan on customer_partition_578 c_326 (cost=0.00..1.02 rows=2 width=72) (never excuted)
-> Seq Scan on customer_partition_579 c_327 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_580 c_328 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_581 c_329 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_582 c_330 (cost=0.00..1.02 rows=2 width=72) (never excuted)
-> Seq Scan on customer_partition_592 c_331 (cost=0.00..1.02 rows=2 width=72) (never excuted)
-> Seq Scan on customer_partition_593 c_332 (cost=0.00..1.02 rows=2 width=72) (never excuted)
-> Seq Scan on customer_partition_594 c_333 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_595 c_334 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_596 c_335 (cost=0.00..1.02 rows=2 width=72) (never excuted)
-> Seq Scan on customer_partition_597 c_336 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Seq Scan on customer_partition_598 c_337 (cost=0.00..18.10 rows=810 width=72) (never excuted)
-> Hash (cost=11.70..11.70 rows=170 width=447) (actual time=0.381..0.382 rows=0 loops=1)
Buckets: 1024 Batches: 1 Memory Usage: 8kB
-> Seq Scan on type_stage ts (cost=0.00..11.70 rows=170 width=447) (actual time=0.380..0.380 rows=0 loops=1)