SQLite to Postgres, II

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pdxpug(at)postgresql(dot)org
Subject: SQLite to Postgres, II
Date: 2011-02-17 00:38:21
Message-ID: alpine.LNX.2.00.1102161610030.19529@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pdxpug

I split the .sql output file from sqlite into 5,000 line chunks and I'm
cleaning those so they are in postgres format (no quotes, colon as
delimiter). I have about 30K lines ready for insertion. The database has a
name (via 'createdb'), and the top of the text file has the create table
statement followed by 30K INSERT INTO lines.

Neither \copy from within psql nor pg_restore are happy with the source
file. How do I insert these data into the named table/relation in the
currently empty database? I don't see anything in Douglas & Douglas.

Rich

Responses

Browse pdxpug by date

  From Date Subject
Next Message Michael Ewan 2011-02-17 00:44:11 Re: SQLite to Postgres, II
Previous Message Rich Shepard 2011-02-16 21:46:15 Re: Spaces in .sql File