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?.
3 rows affected
3 rows affected
5 rows affected
6 rows affected
photo_id photo comments tags
2 Donald [{"comment_id":3,"photo_id":2,"comment":"The wind!"},
 {"comment_id":4,"photo_id":2,"comment":"Donald quacks a lot."},
 {"comment_id":5,"photo_id":2,"comment":"The wind!"},
 {"comment_id":6,"photo_id":2,"comment":"Donald quacks a lot."}]
[{"tag_id":1,"name":"funky"},
 {"tag_id":2,"name":"drumpfy"},
 {"tag_id":3,"name":"sick"}]
photo_id photo comments tags
2 Donald [{"comment_id" : 3, "comment" : "The wind!"}, {"comment_id" : 4, "comment" : "Donald quacks a lot."}, {"comment_id" : 5, "comment" : "The wind!"}, {"comment_id" : 6, "comment" : "Donald quacks a lot."}] [{"tag_id":1,"name":"funky"},
 {"tag_id":2,"name":"drumpfy"},
 {"tag_id":3,"name":"sick"}]
photo_id photo comments tags
1 Homer [{"comment_id" : 1, "comment" : "Homer whoaa!"}, {"comment_id" : 2, "comment" : "There goes Homer."}] [{"tag_id":1,"name":"funky"},
 {"tag_id":3,"name":"sick"}]
2 Donald [{"comment_id" : 3, "comment" : "The wind!"}, {"comment_id" : 4, "comment" : "Donald quacks a lot."}, {"comment_id" : 5, "comment" : "The wind!"}, {"comment_id" : 6, "comment" : "Donald quacks a lot."}] [{"tag_id":1,"name":"funky"},
 {"tag_id":2,"name":"drumpfy"},
 {"tag_id":3,"name":"sick"}]
3 Incognito [] []
photo_id photo comments1 comments2 comments3 tags
2 Donald ["Donald quacks a lot.", "The wind!"] [{"comment" : "Donald quacks a lot."}, {"comment" : "The wind!"}] [{"comment":"Donald quacks a lot."}, {"comment":"The wind!"}] [{"name": "funky", "tag_id": 1}, {"name": "drumpfy", "tag_id": 2}, {"name": "sick", "tag_id": 3}]