| From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
|---|---|
| To: | gvim <gvimrc(at)gmail(dot)com> |
| Cc: | pgsql <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Recreate database but old tables still present |
| Date: | 2011-02-24 15:55:45 |
| Message-ID: | 4D667F81.5000405@lelarge.info |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Le 24/02/2011 16:49, gvim a écrit :
> PostgreSQL 9.0.3/Mac OS X 10.6.6
>
> I need to recreate a database at regular intervals and what normally
> works is:
>
> user$: dropdb -U myuser -h localhost mydb;
>
> user $: psql -U myuser -h localhost mydb;
> psql: FATAL: database "mydb" does not exist
>
> user$: createdb -U myuser -h localhost mydb;
>
> Now, for some reason, when I recreate the datbase the old tables are
> still present. I've tried the same procedure using a psql login but the
> result is the same.
>
You probably created your tables in the template1 database. Check this
database if they appear here too.
--
Guillaume
http://www.postgresql.fr
http://dalibo.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Huxton | 2011-02-24 17:15:03 | Re: database is bigger after dump/restore - why? (60 GB to 109 GB) |
| Previous Message | Vibhor Kumar | 2011-02-24 15:55:38 | Re: Recreate database but old tables still present |