how to recreate a DB in postgres

how to re-create a DB from an sql of itself (a different version of itself) or what not.
<code>
dropdb logs_state_tracker
createdb -T template0 logs_state_tracker
psql logs_state_tracker < /tmp/logs_state_tracker_latest.sql
</code>

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.