STEP1: Dump Database Structure and Data
pg_dump --create --inserts -f myPgDump.sql -d myDatabaseName -U myUserName -W myPassword
STEP2: delete everything except the CREATE TABLES and INSERT commands from myPgDump.sql (using a text editor)
STEP3: Initialize the SQLite Database Data Transfer Structure and Your Postgres Dump Data
sqlite3 myNewSQLiteDB.db -init -myPgDump.sql
STEP4: use your database;)
Artem zaytsev
source share