Postgresql – Create new related entity and enter its id into a link table
My foos each have a bar. At least they're supposed to. I now want to create and assign bars to all foos that don't. bar is completely detached from foo, it only has an id serial that serves as its…