Re: restoring a database to its initial state
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Manlio Perillo <manlio.perillo@gmail.com>, pgsql-general@postgresql.org
Date: 2010-03-13T16:20:54Z
Lists: pgsql-general
Pavel Stehule <pavel.stehule@gmail.com> writes: > 2010/3/13 Manlio Perillo <manlio.perillo@gmail.com>: >> Usually when I need to restore a database to its initial state, what I >> do is to simply drop it, and then re-create it. >> However on a shared hosting this is not possible. > Usually people use a install and a uninstall scripts. First creates > dbobjects, second removes objects. "pg_dump --clean" can help with creating an uninstall script. regards, tom lane