psql -h HOST -p PORT -f import.sql -U USER -d DEFAULTDB

  • HOST
  • PORT
  • USER
  • DEFAULTDB

import.sql

COPY public.mytable (id, name, surname) FROM stdin;
1 yuri bacciarini
2 marla swinger
3 tyler durden