How restore a PostgreSQL table from *.sql using pg_dump or psql?

NiLL picture NiLL · Feb 24, 2012 · Viewed 40.7k times · Source

I need to restore a big table (250mb) in PostgreSQL database in console tool. How I can do this using ps_dump or psql?

Answer

Tometzky picture Tometzky · Feb 24, 2012

Just connect to database with psql and run \i /path/to/filename.sql.