RadarURL Dev Tips

pg_dump: No matching tables were found

Solution :

 pg_dump -U dbUser —inserts  -t ‘“tbTableName”’ dataBaseName  >stor.sql

[PostgreSQL] How dump database with inserts ?

pg_dump -U dbUser —inserts  db_Name  > file.sql.dump

[PostgreSQL] How clear (truncate) all tables in database?

pg_dump --schema-only mydb > mydb.schema.dump 
dropdb mydb
psql -f mydb.schema.dump mydb

[PostgreSQL] How create clone/copy database ?

su postgres

psql 

CREATE DATABASE mynew_db WITH TEMPLATE myOld_db  OWNER myUser1;