Database - zacisco/notes GitHub Wiki
Relations

Useful tricks
Get INSERT sql from existing row
pg_dump -h host -U user -d dbname --table=your_table --data-only --column-inserts --where="id=123"

pg_dump -h host -U user -d dbname --table=your_table --data-only --column-inserts --where="id=123"