Hi
Is it possible to backup the structure of a Postgres Database, I normally use the pgdump command for a backup but then the structure and the data is backup. I want to replicate the DB but with no data, a completely clean DB. The only way that I can think of is to restore the backup file and then write a sql script that will delete all the data, but with a DB of 220+ tables, certainly there must be a faster way.
Thanks
Start Free Trial