To import data to postgresql, you have three options:
you can create a "sql" file that has the create table, and a bunch of insert statements in it, you can make a tab delimitted file and build a short script around it that creates your table and then does a "copy tablename from STDIN;" followed by all the tab delimitted data, and lastly, you can create a tab delimitted file and issue a \copy command to copy it in (i.e. '\copy table from filename' to load data or '\copy table to filename' to export data into tab delimitted output.
On some platforms \copy doesn't work for num_rows >1500 or so.