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?.
version
PostgreSQL 11.3 (Debian 11.3-1.pgdg90+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
id user_id attribute_key attribute_value
1 1 first_name Jesus
2 1 last_name Christ
3 1 Email oldEmail1@test.com
4 1 newEmail newEmail1@test.com
5 2 first_name Ram
6 2 last_name Krish
7 2 Email oldEmail2@test.com
8 2 newEmail newEmail2@test.com
9 3 first_name Muhammad
10 3 last_name Nab
11 3 Email oldEmail3@test.com
12 3 newEmail null
3 rows affected
id user_id attribute_key attribute_value
1 1 first_name Jesus
2 1 last_name Christ
4 1 newEmail newEmail1@test.com
5 2 first_name Ram
6 2 last_name Krish
8 2 newEmail newEmail2@test.com
9 3 first_name Muhammad
10 3 last_name Nab
12 3 newEmail null
3 1 Email newEmail1@test.com
7 2 Email newEmail2@test.com
11 3 Email null
3 rows affected
id user_id attribute_key attribute_value
1 1 first_name Jesus
2 1 last_name Christ
5 2 first_name Ram
6 2 last_name Krish
9 3 first_name Muhammad
10 3 last_name Nab
3 1 Email newEmail1@test.com
7 2 Email newEmail2@test.com
11 3 Email null