drop + create database restores previous tables and data

From: Douglas Toltzman <doug(at)oakstreetsoftware(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: drop + create database restores previous tables and data
Date: 2005-05-22 18:37:33
Message-ID: 847e4cc03f825e8d7b298aabba62923b@oakstreetsoftware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I just installed Postgres v 8.0.3. I loaded by databases, then decided
to reload a database. I dropped the database with dropdb (I also tried
DROP DATABASE in pgsql), then I recreated the database with createdb.
When I tried to reload the data from the database dump, I got errors
because the relations and data were already in the newly created
database. I've since tried dropping and recreating several times.
After dropping and creating, I can connect to the database and see all
of the data that was there before dropping the database; without
reloading anything.

At this early stage, I can remove everything and recreate the entire
installation from scratch, but this will create a real problem in the
future.

Douglas Toltzman, Oak Street Software, Inc.
voice: 910-526-5938
http://www.oakstreetsoftware.com/

Browse pgsql-bugs by date

  From Date Subject
Next Message John Hansen 2005-05-22 19:34:49 Re: drop + create database restores previous tables and data
Previous Message shd 2005-05-22 01:13:04