if version <8.4.0
pg_dump -D -t <table> <database>
Add -a before -t if you only want to INSERT, without CREATE TABLE, etc., to set up the table first.
version> = 8.4.0
pg_dump --column-inserts --data-only --table=<table> <database>
psmears May 18 '10 at 2:14 p.m. 2010-05-18 14:14
source share