EMPTYING A DATABASE - Mailing list pgsql-novice

From JORGE MALDONADO
Subject EMPTYING A DATABASE
Date
Msg-id u2jf03943a01004290909i92620250za101370c6680556a@mail.gmail.com
Whole thread Raw
Responses Re: EMPTYING A DATABASE  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-novice
I am developing a project in which, of course, information is fed to the DB for testing purposes and sometimes I need to get the DB clean, without any record.
What would be the best practice to delete all of the records and start testing with a blank DB?
Should I issue a DELETE command for every table? If this is the case then I need to take care of referential integrity dependency because I cannot delete parent records before child records.
 
With respect,
Jorge Maldonado

pgsql-novice by date:

Previous
From: Mick
Date:
Subject: Re: pls help me to unsubscribe from this list.
Next
From: "Greg Sabino Mullane"
Date:
Subject: Re: EMPTYING A DATABASE