add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
CREATE TABLE
QUERY PLAN
Hash Join (cost=28.23..163.16 rows=3280 width=128)
  Hash Cond: (a.dependde = b.employeid)
  -> Seq Scan on employe a (cost=0.00..18.10 rows=810 width=68)
  -> Hash (cost=18.10..18.10 rows=810 width=68)
        -> Seq Scan on employe b (cost=0.00..18.10 rows=810 width=68)
EXPLAIN
QUERY PLAN
Hash Join (cost=28.23..163.16 rows=3280 width=128)
  Hash Cond: (employe.dependde = employe_1.employeid)
  -> Seq Scan on employe (cost=0.00..18.10 rows=810 width=68)
  -> Hash (cost=18.10..18.10 rows=810 width=68)
        -> Seq Scan on employe employe_1 (cost=0.00..18.10 rows=810 width=68)
EXPLAIN
QUERY PLAN
Hash Join (cost=28.23..163.16 rows=3280 width=128)
  Hash Cond: (employe.dependde = employe_1.employeid)
  -> Seq Scan on employe (cost=0.00..18.10 rows=810 width=68)
  -> Hash (cost=18.10..18.10 rows=810 width=68)
        -> Seq Scan on employe employe_1 (cost=0.00..18.10 rows=810 width=68)
EXPLAIN